Skip to content

Commit

Permalink
fix: Don't search for invalid cURL components
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
mikedld authored and COM8 committed Jul 28, 2020
1 parent 6d5ab2b commit 451fd1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 451fd1a

Please sign in to comment.