From 451fd1a896c963367ebb3d77cfe4550b2d5636f3 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Tue, 28 Jul 2020 01:49:00 +0300 Subject: [PATCH] fix: Don't search for invalid cURL components `PROTOCOLS` and `FEATURES` aren't real cURL package components. AFAICT neither CMake-bundled FindCURL module nor cURL-provided config package (when building it with CMake) support those components, and both fail to find the library when they are passed. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c065227d7..bba123f8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,11 +55,11 @@ include(cmake/code_coverage.cmake) # Curl configuration if(USE_SYSTEM_CURL) - find_package(CURL COMPONENTS PROTOCOLS HTTP HTTPS FEATURES SSL) + find_package(CURL COMPONENTS HTTP HTTPS SSL) if (CURL_FOUND) set(SSL_ENABLED ON CACHE INTERNAL "" FORCE) else() - find_package(CURL COMPONENTS PROTOCOLS HTTP) + find_package(CURL COMPONENTS HTTP) if(CURL_FOUND) set(SSL_ENABLED OFF CACHE INTERNAL "" FORCE) endif()