diff --git a/CMakeLists.txt b/CMakeLists.txt index 319e23328..7803dc104 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,10 @@ find_package(Threads) find_package(PkgConfig QUIET) find_package(CURL ${CURL_MINIMUM} REQUIRED) +if(TARGET CURL::libcurl) + set(CURL_LIBRARIES CURL::libcurl) + set(CURL_INCLUDE_DIRS) +endif() find_package(ICONV)