vcpkg/ports/uvw/fix-find-libuv.patch
JAEHONG KIM cb7d3b4999
[libuv] Update to 1.45.0 (#32165)
* [libuv] Update to 1.45.0

* [libuv] Update all consuming ports

* [libuv] Update versions

* resolve port SHA

* Add port-version

* update version

* revert usockets.json

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
2023-06-27 17:07:58 -07:00

20 lines
452 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 289c006..180383f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -193,6 +193,14 @@ if (BUILD_UVW_LIBS)
SOVERSION ${UVW_VERSION_MAJOR}
)
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::