aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/getdns/fix-libuv-deps.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/getdns/fix-libuv-deps.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/getdns/fix-libuv-deps.patch')
-rw-r--r--vcpkg/ports/getdns/fix-libuv-deps.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/getdns/fix-libuv-deps.patch b/vcpkg/ports/getdns/fix-libuv-deps.patch
new file mode 100644
index 0000000..71720ce
--- /dev/null
+++ b/vcpkg/ports/getdns/fix-libuv-deps.patch
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c5b711e..6bd9ee2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -872,7 +872,7 @@ endif ()
+
+ # libuv extension.
+ if (USE_LIBUV)
+- find_package(Libuv)
++ find_package(libuv CONFIG REQUIRED)
+ if (Libuv_FOUND)
+ # Check for new-style callbacks.
+ try_compile(HAVE_NEW_UV_TIMER_CB
+@@ -894,8 +894,7 @@ if (USE_LIBUV)
+ set_property(TARGET uv_objects PROPERTY C_STANDARD 11)
+ if (ENABLE_STATIC)
+ add_library(getdns_ext_uv STATIC $<TARGET_OBJECTS:uv_objects>)
+- target_include_directories(getdns_ext_uv PRIVATE Libuv::Libuv)
+- target_link_libraries(getdns_ext_uv PUBLIC getdns Libuv::Libuv)
++ target_link_libraries(getdns_ext_uv PUBLIC getdns $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>)
+ if (Libunbound_FOUND)
+ target_link_libraries(getdns_ext_uv PUBLIC Libunbound::Libunbound)
+ endif ()
+@@ -903,8 +902,7 @@ if (USE_LIBUV)
+ endif ()
+ if (ENABLE_SHARED)
+ add_library(getdns_ext_uv_shared SHARED $<TARGET_OBJECTS:uv_objects>)
+- target_include_directories(getdns_ext_uv_shared PRIVATE Libuv::Libuv)
+- target_link_libraries(getdns_ext_uv_shared PUBLIC getdns_shared Libuv::Libuv)
++ target_link_libraries(getdns_ext_uv_shared PUBLIC getdns $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>)
+ if (Libunbound_FOUND)
+ target_link_libraries(getdns_ext_uv_shared PUBLIC Libunbound::Libunbound)
+ endif ()