Skip to content

Commit

Permalink
Specify link library visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwothousand committed Aug 5, 2021
1 parent bd04c6d commit e16e91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (ENET_STATIC)
add_library(enet STATIC test/library.c)

if (WIN32)
target_link_libraries(enet winmm ws2_32)
target_link_libraries(enet PUBLIC winmm ws2_32)
endif()
endif()

Expand All @@ -14,15 +14,15 @@ if (ENET_SHARED)
add_library(enet SHARED test/library.c)

if (WIN32)
target_link_libraries(enet winmm ws2_32)
target_link_libraries(enet PUBLIC winmm ws2_32)
endif()
endif()

if (ENET_TEST)
add_executable(enet_test test/build.c)

if (WIN32)
target_link_libraries(enet_test winmm ws2_32)
target_link_libraries(enet_test PUBLIC winmm ws2_32)
endif()
endif()

Expand Down

0 comments on commit e16e91f

Please sign in to comment.