Skip to content

Commit

Permalink
Merge pull request #156 from sl1200mk2/patch-3
Browse files Browse the repository at this point in the history
Update CMakeLists.txt
  • Loading branch information
radarsat1 authored Feb 16, 2024
2 parents 7466e7e + 7abb043 commit f06c6b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,15 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
if (WITH_STATIC)
target_link_libraries(${LIBRARY_STATIC} PRIVATE "wsock32" "ws2_32" "iphlpapi")
endif()
if (WITH_EXAMPLES)
target_link_libraries(${NONBLOCKING_SERVER_EXAMPLE} PRIVATE "wsock32")
endif()
if (WITH_TESTS)
target_link_libraries(${TESTLO} PRIVATE "wsock32")
endif()
if (WITH_CPP_TESTS)
target_link_libraries(${TESTTCP} PRIVATE "wsock32")
endif()

set_target_properties(${LIBRARY_SHARED} PROPERTIES
COMPILE_DEFINITIONS "LIBLO_DLL")
Expand Down

0 comments on commit f06c6b6

Please sign in to comment.