Merge pull request #514 from SpaceIm/fix-mingw-link-ws2_32
CMake: explicit link to ws2_32 if targeting Windows
This commit is contained in:
commit
2448a2ad93
|
|
@ -92,6 +92,10 @@ else()
|
|||
add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP})
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ws2_32)
|
||||
endif()
|
||||
|
||||
# install rules
|
||||
# ------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue