aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/uvw/fix-find-libuv.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/uvw/fix-find-libuv.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/uvw/fix-find-libuv.patch')
-rw-r--r--vcpkg/ports/uvw/fix-find-libuv.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/uvw/fix-find-libuv.patch b/vcpkg/ports/uvw/fix-find-libuv.patch
new file mode 100644
index 0000000..d9218d1
--- /dev/null
+++ b/vcpkg/ports/uvw/fix-find-libuv.patch
@@ -0,0 +1,18 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2be8ae8..cda1957 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -194,6 +194,13 @@ if (BUILD_UVW_LIBS)
+ )
+ endif()
+
++find_package(libuv CONFIG REQUIRED)
++if (TARGET libuv::uv)
++ target_link_libraries(uvw PRIVATE libuv::uv)
++else()
++ target_link_libraries(uvw PRIVATE libuv::uv_a)
++endif()
++
+ install(
+ EXPORT uvwConfig
+ NAMESPACE uvw::