From f69769d32b74a3f00e1cb1fc2347eafadd0d6067 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 31 Mar 2021 17:32:41 +0300 Subject: [PATCH] Update CMakeLists.txt --- vendor/CPR/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vendor/CPR/CMakeLists.txt b/vendor/CPR/CMakeLists.txt index fae79d4d..5afd83d0 100644 --- a/vendor/CPR/CMakeLists.txt +++ b/vendor/CPR/CMakeLists.txt @@ -48,14 +48,11 @@ add_library(CPR STATIC target_include_directories(CPR PRIVATE ${CMAKE_CURRENT_LIST_DIR}/cpr) target_include_directories(CPR PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) # Find CURK -find_package(CURL REQUIRED COMPONENTS HTTP HTTPS SSL) +find_package(CURL REQUIRED) if (CURL_FOUND) set(SSL_ENABLED ON CACHE INTERNAL "" FORCE) else() - find_package(CURL REQUIRED COMPONENTS HTTP) - if(CURL_FOUND) - set(SSL_ENABLED OFF CACHE INTERNAL "" FORCE) - endif() + message(FATAL_ERROR "Unable to find CURL library.") endif() # Link to CURL target_link_libraries(CPR PUBLIC curl)