Skip to content

Commit 28a62f9

Browse files
committed
CoreFoundation: permit CURL's CMake package for configuration
Support both the CMake package provided by CURL's build as well as the fallback path when detecting CURL. This should restore the ability to use zlib for compression on Windows.
1 parent b280852 commit 28a62f9

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)