From 3dd94889fa97f531f6c4197c11d81d7243481422 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 6 Feb 2024 14:16:52 +0500 Subject: [PATCH] ifcopenshell installation notion about compiling only specific schemas --- cmake/CMakeLists.txt | 2 ++ src/ifcopenshell-python/docs/ifcopenshell/installation.rst | 3 +++ 2 files changed, 5 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index cef5f3fab6..27d19c48b9 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -719,6 +719,8 @@ if(NOT SCHEMA_VERSIONS) endif() endif() +message(STATUS "IFC SCHEMA_VERSIONS that will be used for the build: ${SCHEMA_VERSIONS}.") + foreach(schema ${SCHEMA_VERSIONS}) add_definitions(-DHAS_SCHEMA_${schema}) endforeach() diff --git a/src/ifcopenshell-python/docs/ifcopenshell/installation.rst b/src/ifcopenshell-python/docs/ifcopenshell/installation.rst index 6b93b044ed..f7f6d117c2 100644 --- a/src/ifcopenshell-python/docs/ifcopenshell/installation.rst +++ b/src/ifcopenshell-python/docs/ifcopenshell/installation.rst @@ -10,6 +10,9 @@ you how to compile and install IfcOpenShell. IfcOpenShell-Python, IfcConvert, or the other utilities such as IfcClash or IfcDiff. Compilation is only necessary for C++ developers. + By default, it will compile all available IFC schemas. To reduce compilation time you can specify + only the schemas you need in `CMakeLists.txt` with `set(SCHEMA_VERSIONS "2x3" "4")`. + You will need: - `Git `__