cmake: a couple of fixes to the build system
This commit is contained in:
parent
fb2f8d9eff
commit
f70a0dbc2b
@ -65,14 +65,14 @@ if (UVW_BUILD_SHARED_LIB)
|
||||
add_library(uvw SHARED)
|
||||
add_library(uvw::uvw-shared ALIAS uvw)
|
||||
# If libuv is not fetched by ourselves, it's the caller's responsibility to make sure of the linkage.
|
||||
if(FETCH_LIBUV OR libuv_FOUND)
|
||||
if(UVW_FETCH_LIBUV OR libuv_FOUND)
|
||||
target_link_libraries(uvw PUBLIC uv::uv-shared)
|
||||
endif()
|
||||
else()
|
||||
add_library(uvw STATIC)
|
||||
add_library(uvw::uvw-static ALIAS uvw)
|
||||
# If libuv is not fetched by ourselves, it's the caller's responsibility to make sure of the linkage.
|
||||
if(FETCH_LIBUV OR libuv_FOUND)
|
||||
if(UVW_FETCH_LIBUV OR libuv_FOUND)
|
||||
target_link_libraries(uvw PUBLIC uv::uv-static)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user