diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/luv/fix-find-libuv.patch | |
Diffstat (limited to 'vcpkg/ports/luv/fix-find-libuv.patch')
| -rw-r--r-- | vcpkg/ports/luv/fix-find-libuv.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/luv/fix-find-libuv.patch b/vcpkg/ports/luv/fix-find-libuv.patch new file mode 100644 index 0000000..1a94fc4 --- /dev/null +++ b/vcpkg/ports/luv/fix-find-libuv.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e63a431..163bada 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -65,8 +65,8 @@ endif () + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + + if (WITH_SHARED_LIBUV) +- find_package(Libuv REQUIRED) +- include_directories(${LIBUV_INCLUDE_DIR}) ++ find_package(libuv CONFIG REQUIRED) ++ set(LIBUV_LIBRARIES $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>) + else (WITH_SHARED_LIBUV) + include_directories(deps/libuv/include) + add_subdirectory(deps/libuv EXCLUDE_FROM_ALL) |