2020-12-23 15:19:50 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-08-12 10:38:08 +08:00
|
|
|
index 9f6de81..6702845 100644
|
2020-12-23 15:19:50 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-08-12 10:38:08 +08:00
|
|
|
@@ -632,6 +632,9 @@ endif()
|
|
|
|
option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
|
|
|
|
set(HAVE_LIBIDN2 OFF)
|
|
|
|
if(USE_LIBIDN2)
|
|
|
|
+ set(HAVE_LIBIDN2 TRUE)
|
2022-01-20 01:15:16 +08:00
|
|
|
+ list(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
|
2021-08-12 10:38:08 +08:00
|
|
|
+elseif(0)
|
|
|
|
check_library_exists_concat("idn2" idn2_lookup_ul HAVE_LIBIDN2)
|
2020-12-23 15:19:50 +08:00
|
|
|
endif()
|
|
|
|
|