]> git.mxchange.org Git - flightgear.git/commitdiff
Curl is required for SimGear now.
authorJames Turner <zakalawe@mac.com>
Sat, 7 May 2016 09:23:02 +0000 (10:23 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:34 +0000 (23:27 +0200)
CMakeModules/FindSimGear.cmake

index 0b1110993d248df5c6ba262d765fc4a14d23cdc3..1cfb7da9ac2bb54fa6b45b6788db2eb3775b438d 100644 (file)
@@ -229,21 +229,8 @@ if(NOT SIMGEAR_COMPILE_TEST)
 endif()
 unset(CMAKE_REQUIRED_DEFINITIONS)
 
-unset(SIMGEAR_CURL_TEST CACHE)
-check_cxx_source_compiles("
-  #include \"simgear/simgear_config.h\"
-  #if !defined(ENABLE_CURL)
-    #error Curl not enabled
-  #endif
-  int main() {}
-"
-SIMGEAR_CURL_TEST)
-
-if (SIMGEAR_CURL_TEST)
-    message(STATUS "SimGear uses Curl")
-    find_package(CURL REQUIRED)
-    list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ${CURL_LIBRARIES})
-endif()
+find_package(CURL REQUIRED)
+list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ${CURL_LIBRARIES})
 
 include(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SimGear DEFAULT_MSG