Skip to content

Commit

Permalink
Adjust linking configuration (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 9, 2024
1 parent 97a897d commit b93bcd6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
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

0 comments on commit b93bcd6

Please sign in to comment.