Skip to content

Commit b42581b

Browse files
committed
cmake - fix WSOCK32 lib required for OCCT on Unix (ce7fdcc)
1 parent bf2c275 commit b42581b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindOpenCASCADE.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if(NOT OCC_INCLUDE_DIR AND NOT OCC_LIBRARY_DIR)
4646
)
4747
endif()
4848

49-
if(OpenCASCADE_VERSION VERSION_LESS "7.9.0")
49+
if(OpenCASCADE_VERSION VERSION_LESS "7.9.0" AND WIN32)
5050
# Bug in OCCT cmake configs < 7.9.0 - missing linked library.
5151
list(APPEND OpenCASCADE_LIBRARIES WSOCK32.lib)
5252
endif()

0 commit comments

Comments
 (0)