-if (SG_SVN_CLIENT)
- message(STATUS "Using built-in subversion client code")
-elseif(ENABLE_LIBSVN)
- find_package(SvnClient)
-
- if(LIBSVN_FOUND)
- message(STATUS "Subversion client support: ENABLED")
- set(HAVE_SVN_CLIENT_H 1)
- set(HAVE_LIBSVN_CLIENT_1 1)
- else()
- # Oops. ENABLE_LIBSVN is ON, but svn is still missing.
- # Provide clearly visible warning/hint, so builders know what else they should install (or disable).
- message(WARNING "Failed to enable subversion client support. Unable to find required subversion client library. Some features may not be available (scenery download).")
- message(WARNING "Install 'libsvn' library/DLL (libsvn-devel/libsvnclient/...). Otherwise disable subversion support (set 'ENABLE_LIBSVN' to 'OFF').")
- endif(LIBSVN_FOUND)
-else()
- message(STATUS "Subversion client support: DISABLED")
-endif(SG_SVN_CLIENT)
-