Skip to content

Commit

Permalink
build: add alias for libuv to CMakeLists.txt (libuv#4297)
Browse files Browse the repository at this point in the history
Fixes: libuv#4282
  • Loading branch information
anthonyalayo authored Feb 9, 2024
1 parent 009d741 commit 7b9e37c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,14 @@ if(MSVC)
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:
Install prefix: ${CMAKE_INSTALL_PREFIX}
Target system: ${CMAKE_SYSTEM_NAME}
Expand Down

0 comments on commit 7b9e37c

Please sign in to comment.