Win32: Link libmisc against Winsock

Some parts of libmisc call into Winsock, so we should link that instead
of just linking it into the final binaries.
alut-include-path
Nicolas Hake 2017-03-05 12:41:05 +01:00
parent c8d37a5346
commit eee5a5d663
1 changed files with 1 additions and 6 deletions

View File

@ -1241,12 +1241,7 @@ target_link_libraries(netpuncher
)
if(WIN32)
target_link_libraries(libmisc iphlpapi)
target_link_libraries(openclonk ws2_32)
target_link_libraries(openclonk-server ws2_32)
target_link_libraries(c4group ws2_32)
target_link_libraries(c4script ws2_32)
target_link_libraries(netpuncher ws2_32)
target_link_libraries(libmisc iphlpapi ws2_32)
endif()
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:_DEBUG>)