Link Ws2_32.lib on Windows when building with OCC

This commit is contained in:
mhochsteger@cerbsim.com 2021-11-05 19:55:25 +01:00
parent b99b107bbc
commit 0da6aeb94f

View File

@ -370,6 +370,9 @@ if (USE_OCC)
list(PREPEND OCC_LIBRARIES -Wl,--start-group)
list(APPEND OCC_LIBRARIES -Wl,--end-group)
endif()
if(WIN32)
list(APPEND OCC_LIBRARIES Ws2_32.lib)
endif()
endif()
message(STATUS "OCC DIRS ${OpenCASCADE_INCLUDE_DIR}")
endif (USE_OCC)