mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 18:59:01 +08:00
19 lines
546 B
Diff
19 lines
546 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a54c2ff..3b83a7f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -852,11 +852,8 @@ endif()
|
|
# Check for idn2
|
|
option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
|
|
if(USE_LIBIDN2)
|
|
- check_library_exists("idn2" "idn2_lookup_ul" "" HAVE_LIBIDN2)
|
|
- if(HAVE_LIBIDN2)
|
|
- set(CURL_LIBS "idn2;${CURL_LIBS}")
|
|
- check_include_file_concat("idn2.h" HAVE_IDN2_H)
|
|
- endif()
|
|
+ set(HAVE_LIBIDN2 TRUE)
|
|
+ list(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
|
|
else()
|
|
set(HAVE_LIBIDN2 OFF)
|
|
endif()
|