From c7df59e9619aaf9b45dd0a3386d9c29f5c127287 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 2 Dec 2025 17:59:45 +0500 Subject: [PATCH] cmake - indicate that OpenCascade is only used by IfcGeom --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a6ad1a5130..f62a9813ff 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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})