Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust linking configuration #174

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.25)

project(udx C)

Expand All @@ -15,14 +15,14 @@ set_target_properties(
POSITION_INDEPENDENT_CODE ON
)

if(WIN32)
target_compile_options(udx PRIVATE /W4)
endif()

if(UNIX)
target_compile_options(udx PRIVATE -Wall -Wextra)
endif()

if(WIN32)
target_compile_options(udx PRIVATE /W4)
endif()

target_sources(
udx
INTERFACE
Expand Down Expand Up @@ -61,7 +61,7 @@ if(WIN32)
)
endif()

add_library(udx_shared SHARED $<TARGET_OBJECTS:udx>)
add_library(udx_shared SHARED)

set_target_properties(
udx_shared
Expand All @@ -73,6 +73,7 @@ set_target_properties(
target_link_libraries(
udx_shared
PUBLIC
udx
uv
)

Expand All @@ -84,7 +85,7 @@ if(UNIX)
)
endif()

add_library(udx_static STATIC $<TARGET_OBJECTS:udx>)
add_library(udx_static STATIC)

set_target_properties(
udx_static
Expand All @@ -95,6 +96,7 @@ set_target_properties(
target_link_libraries(
udx_static
PUBLIC
udx
uv_a
)

Expand Down
2 changes: 1 addition & 1 deletion vendor/libuv
Submodule libuv updated 349 files
Loading