diff options
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c74e3551..1a2270bf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,9 +294,9 @@ endif() if(CMAKE_SYSTEM_NAME STREQUAL "Windows") set(SUBSURFACE_TARGET subsurface) set(PLATFORM_SRC windows.c) - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32) + set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32 -lws2_32) remove_definitions(-DUNICODE) - add_definitions(-mwindows) + add_definitions(-mwindows -D_WIN32) endif() # include translations |