Link ws2_32 only on Windows

This commit is contained in:
Cacodemon345
2021-09-20 16:00:03 +06:00
parent 6e92ab0955
commit 29b0946c7e

View File

@@ -41,7 +41,10 @@ endif()
if(VNC)
add_compile_definitions(USE_VNC)
add_library(vnc OBJECT vnc.c vnc_keymap.c)
target_link_libraries(86Box vnc vncserver ws2_32)
target_link_libraries(86Box vnc vncserver)
if (WIN32)
target_link_libraries(86Box ws2_32)
endif()
endif()
if(NOT WIN32 OR PTHREAD)