--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,8 @@ endif() # Curl configuration if(CPR_FORCE_USE_SYSTEM_CURL) + find_package(CURL REQUIRED) + if(0) if(CPR_ENABLE_SSL) find_package(CURL COMPONENTS HTTP HTTPS SSL) if(CURL_FOUND) @@ -167,6 +169,7 @@ if(CPR_FORCE_USE_SYSTEM_CURL) message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.") endif() endif() + endif() else() message(STATUS "Configuring build in curl...")