Explicitly require LibUV 1.10 or higher to build CMake

CMake 3.11 now uses `uv_translate_sys_error` introduced in LibUV 1.10.
This commit is contained in:
ErofeevK 2018-04-16 02:48:31 -04:00 committed by Brad King
parent 61fd4c7420
commit f5f72ff844

View File

@ -546,7 +546,7 @@ macro (CMAKE_BUILD_UTILITIES)
#---------------------------------------------------------------------
# Build libuv library.
if(CMAKE_USE_SYSTEM_LIBUV)
find_package(LibUV 1.0.0)
find_package(LibUV 1.10.0)
if(NOT LIBUV_FOUND)
message(FATAL_ERROR
"CMAKE_USE_SYSTEM_LIBUV is ON but a libuv is not found!")