vcpkg/ports/curl/0012-fix-dependency-idn2.patch
Kai Pastor 08bb6e106e
[curl] Update to 7.81.0 (#22445)
* Update to 7.81.0

* Revise curl wrapper, fix `COMPONENTS`

* Update versions

* Add fix for multi-ssl config

* [skip actions] CI feature test

* Refactor lib export fixup

Handle Debug/Release/IMPORTED_*...

* Fix libssh2 lookup

* Fix libidn2.pc for windows

* Fix libidn2 import

* Fix mbedtls import

* Simplify options

* [skip actions] CI feature test

* Revert CI feature test configuration

* Update versions

* Limit import lib fixup to WIN32

* Update versions
2022-01-19 09:15:16 -08:00

15 lines
408 B
Diff

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(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
+elseif(0)
check_library_exists_concat("idn2" idn2_lookup_ul HAVE_LIBIDN2)
endif()