aboutsummaryrefslogtreecommitdiff
path: root/ports/curl/0012-fix-dependency-idn2.patch
blob: 9388f91a0b24978d97a0b7b9c230e00443704eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f6de81..6702845 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
+  list(APPEND CURL_LIBS ${LIBIDN2_LIBRARIES})
+elseif(0)
   check_library_exists_concat("idn2" idn2_lookup_ul HAVE_LIBIDN2)
 endif()