Skip to content

Commit a5f74c3

Browse files
authored
Merge pull request #2602 from compnerd/curl-package
CoreFoundation: permit CURL's CMake package for configuration
2 parents 0374c7d + 28a62f9 commit a5f74c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CoreFoundation/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ find_package(Threads)
2626

2727
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
2828
find_package(LibXml2 REQUIRED)
29-
find_package(CURL REQUIRED)
29+
find_package(CURL CONFIG)
30+
if(NOT CURL_FOUND)
31+
find_package(CURL REQUIRED)
32+
endif()
3033
find_package(ICU COMPONENTS uc i18n REQUIRED)
3134
endif()
3235

0 commit comments

Comments
 (0)