vcpkg/ports/luv/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

16 lines
567 B
Diff

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)