build-deps - use OCC_INSTALL_DIR instead of includes/libs path

This commit is contained in:
Andrej730
2025-12-09 13:56:19 +05:00
parent e503dad510
commit ce7fdcc191
4 changed files with 32 additions and 30 deletions
+6
View File
@@ -36,6 +36,12 @@ if(NOT OCC_INCLUDE_DIR AND NOT OCC_LIBRARY_DIR)
find_package(OpenCASCADE CONFIG REQUIRED)
message(STATUS "Found OpenCASCADE config: ${OpenCASCADE_DIR}")
if(OpenCASCADE_VERSION VERSION_LESS "7.9.0")
# Bug in OCCT cmake configs < 7.9.0 - missing linked library.
list(APPEND OpenCASCADE_LIBRARIES WSOCK32.lib)
endif()
return()
endif()