cmake - indicate that OpenCascade is only used by IfcGeom

This commit is contained in:
Andrej730
2025-12-02 17:59:45 +05:00
parent 6cbd3ed014
commit c7df59e961
+1 -1
View File
@@ -205,7 +205,7 @@ if(WITH_CGAL)
list(APPEND GEOMETRY_KERNELS cgal)
endif()
if(WITH_OPENCASCADE)
if(BUILD_IFCGEOM AND WITH_OPENCASCADE)
find_package(OpenCASCADE REQUIRED)
# Map OpenCASCADE_LIBRARIES variable from OpenCASCADEConfig.cmake to OpenCASCADE_LIBRARIES used by kernel generic cmake file
set(OpenCASCADE_LIBRARIES ${OpenCASCADE_LIBRARIES})