diff options
Diffstat (limited to 'vcpkg/ports/uvw/fix-find-libuv.patch')
| -rw-r--r-- | vcpkg/ports/uvw/fix-find-libuv.patch | 18 |
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:: |