Link ws2_32 only on Windows
This commit is contained in:
@@ -41,7 +41,10 @@ endif()
|
|||||||
if(VNC)
|
if(VNC)
|
||||||
add_compile_definitions(USE_VNC)
|
add_compile_definitions(USE_VNC)
|
||||||
add_library(vnc OBJECT vnc.c vnc_keymap.c)
|
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()
|
endif()
|
||||||
|
|
||||||
if(NOT WIN32 OR PTHREAD)
|
if(NOT WIN32 OR PTHREAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user