From 93c2ca62678b93d196a2e7afa5016cda7ba6bb94 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Tue, 22 Aug 2017 14:44:24 +0300 Subject: [PATCH] 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. --- cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 787ea6fb75..57f9ce4434 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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