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
|
2022-07-06 05:57:47 +08:00
|
|
|
@@ -632,6 +632,7 @@ endif()
|
|
|
|
# Check for idn2
|
2021-08-12 10:38:08 +08:00
|
|
|
option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
|
|
|
|
if(USE_LIBIDN2)
|
2022-07-06 05:57:47 +08:00
|
|
|
- check_library_exists_concat("idn2" idn2_lookup_ul HAVE_LIBIDN2)
|
2021-08-12 10:38:08 +08:00
|
|
|
+ set(HAVE_LIBIDN2 TRUE)
|
2022-01-20 01:15:16 +08:00
|
|
|
+ list(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
|
2022-07-06 05:57:47 +08:00
|
|
|
else()
|
|
|
|
set(HAVE_LIBIDN2 OFF)
|
2020-12-23 15:19:50 +08:00
|
|
|
endif()
|