Fix CURL_LIBRARIES for cURL config-file package

core4
nimetu 3 years ago
parent 513712be02
commit 0118e8d622

@ -329,6 +329,10 @@ IF(WITH_NEL)
ENDIF()
FIND_PACKAGE(CURL REQUIRED)
# if cmake finds config-file package, ie FIND_PACKAGE(CURL CONFIG), then CURL_LIBRARIES is not defined
IF(TARGET CURL::libcurl)
SET(CURL_LIBRARIES CURL::libcurl)
ENDIF()
IF((WIN32 OR CURL_LIBRARIES MATCHES "\\.a") AND WITH_STATIC_CURL)
SET(CURL_STATIC ON)

Loading…
Cancel
Save