diff options
Diffstat (limited to 'Source/Modules/CMakeBuildUtilities.cmake')
-rw-r--r-- | Source/Modules/CMakeBuildUtilities.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake index 157367f..51811d6 100644 --- a/Source/Modules/CMakeBuildUtilities.cmake +++ b/Source/Modules/CMakeBuildUtilities.cmake @@ -148,11 +148,7 @@ if(CMAKE_USE_SYSTEM_CURL) message(FATAL_ERROR "CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!") endif() - set(CMAKE_CURL_INCLUDES ${CURL_INCLUDE_DIRS}) - set(CMAKE_CURL_LIBRARIES ${CURL_LIBRARIES}) else() - set(CMAKE_CURL_INCLUDES) - set(CMAKE_CURL_LIBRARIES cmcurl) if(CMAKE_TESTS_CDASH_SERVER) set(CMAKE_CURL_TEST_URL "${CMAKE_TESTS_CDASH_SERVER}/user.php") endif() @@ -174,6 +170,7 @@ else() set(NGHTTP2_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Utilities/cmnghttp2/lib/includes) endif() add_subdirectory(Utilities/cmcurl) + add_library(CURL::libcurl ALIAS cmcurl) CMAKE_SET_TARGET_FOLDER(cmcurl "Utilities/3rdParty") CMAKE_SET_TARGET_FOLDER(LIBCURL "Utilities/3rdParty") if(NOT CMAKE_USE_SYSTEM_NGHTTP2) |