build: add alias for libuv to CMakeLists.txt (#4297)
Fixes: https://github.com/libuv/libuv/issues/4282
This commit is contained in:
parent
009d7414bc
commit
7b9e37c7da
@ -787,6 +787,14 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BUILD_SHARED_LIBS)
|
||||||
|
set(LIB_SELECTED uv)
|
||||||
|
else()
|
||||||
|
set(LIB_SELECTED uv_a)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(libuv::libuv ALIAS ${LIB_SELECTED})
|
||||||
|
|
||||||
message(STATUS "summary of build options:
|
message(STATUS "summary of build options:
|
||||||
Install prefix: ${CMAKE_INSTALL_PREFIX}
|
Install prefix: ${CMAKE_INSTALL_PREFIX}
|
||||||
Target system: ${CMAKE_SYSTEM_NAME}
|
Target system: ${CMAKE_SYSTEM_NAME}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user