CMakeLists.txt: Add ws2_32.lib to OPENCASCADE_LIBRARIES on Win32 as OCCT might require this depending on the used version and build configuration. Closes #250.

This commit is contained in:
Stinkfist0
2017-08-22 14:44:24 +03:00
committed by Thomas Krijnen
parent 430ab54602
commit 93c2ca6267
+4
View File
@@ -214,6 +214,10 @@ if(MSVC)
add_definitions(-DHAVE_NO_DLL)
add_debug_variants(OPENCASCADE_LIBRARIES "${OPENCASCADE_LIBRARIES}" d)
endif()
if (WIN32)
# OCC might require linking to Winsock depending on the version and build configuration
list(APPEND OPENCASCADE_LIBRARIES ws2_32.lib)
endif()
IF(UNICODE_SUPPORT)
# Find ICU