mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 18:09:51 +08:00
cb7d3b4999
* [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>
29 lines
865 B
Diff
29 lines
865 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index fdfe456..ef2d329 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -647,16 +647,16 @@ macro (CMAKE_BUILD_UTILITIES)
|
|
#---------------------------------------------------------------------
|
|
# Build libuv library.
|
|
if(CMAKE_USE_SYSTEM_LIBUV)
|
|
- if(WIN32)
|
|
- find_package(LibUV 1.38.0)
|
|
- else()
|
|
- find_package(LibUV 1.10.0)
|
|
- endif()
|
|
- if(NOT LIBUV_FOUND)
|
|
+ find_package(libuv CONFIG REQUIRED)
|
|
+ if(0)
|
|
message(FATAL_ERROR
|
|
"CMAKE_USE_SYSTEM_LIBUV is ON but a libuv is not found!")
|
|
endif()
|
|
- set(CMAKE_LIBUV_LIBRARIES LibUV::LibUV)
|
|
+ if (TARGET libuv::uv)
|
|
+ set(CMAKE_LIBUV_LIBRARIES libuv::uv)
|
|
+ else()
|
|
+ set(CMAKE_LIBUV_LIBRARIES libuv::uv_a)
|
|
+ endif()
|
|
else()
|
|
set(CMAKE_LIBUV_LIBRARIES cmlibuv)
|
|
add_subdirectory(Utilities/cmlibuv)
|