From 8bb7ef5e25ddd2a6c2090aaff32ef0a7608c51dc Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 19 Sep 2025 18:55:12 +0500 Subject: [PATCH] cmake - only build examples if 2x3 is present in SCHEMA_VERSIONS As examples currently require ifc2x3 --- src/examples/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 2bb11b370c..c06f7dc68a 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -17,6 +17,7 @@ # # ################################################################################ +if(SCHEMA_VERSIONS MATCHES "2x3") ADD_EXECUTABLE(IfcParseExamples IfcParseExamples.cpp) TARGET_LINK_LIBRARIES(IfcParseExamples IfcParse) set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples) @@ -33,6 +34,7 @@ TARGET_LINK_LIBRARIES(IfcAdvancedHouse ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_L set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples) endif() +endif(SCHEMA_VERSIONS MATCHES "2x3") if(SCHEMA_VERSIONS MATCHES "4x3") ADD_EXECUTABLE(IfcAlignment IfcAlignment.cpp)