From 0da6aeb94fb00d3a6572f15b3ca6c983b7ce7200 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Fri, 5 Nov 2021 19:55:25 +0100 Subject: [PATCH] Link Ws2_32.lib on Windows when building with OCC --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b165acc..a2cc9eab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)