From e2905d6f0e749a6bb24e79e69ed55f02f237ce81 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 18 Apr 2026 21:32:32 +0200 Subject: [PATCH] BUILD_SHARED_LIBS=On --- cmake/CMakeLists.txt | 4 ++-- nix/build-all.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 915f24649a..76fee82027 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -55,7 +55,7 @@ option(MINIMAL_BUILD "The build is to make a minimal version of IFC converter fr option(WASM_BUILD "Build a WebAssembly binary." OFF) option(ENABLE_BUILD_OPTIMIZATIONS "Enable certain compiler and linker optimizations on RelWithDebInfo and Release builds." OFF) -option(BUILD_SHARED_LIBS "Build IfcParse and IfcGeom as shared libs (SO/DLL)." ON) +option(BUILD_SHARED_LIBS "Build IfcOpenShell as shared libraries (required)." ON) option(MSVC_PARALLEL_BUILD "Multi-threaded compilation in Microsoft Visual Studio (/MP)" OFF) option(USE_VLD "Use Visual Leak Detector for debugging memory leaks, MSVC-only." OFF) option(USE_MMAP "Adds a command line options to parse IFC files from memory mapped files using Boost.Iostreams" OFF) @@ -121,7 +121,7 @@ if(MINIMAL_BUILD) endif() if(NOT BUILD_SHARED_LIBS) - message(FATAL_ERROR "IfcOpenShell now requires BUILD_SHARED_LIBS=ON.") + message(FATAL_ERROR "BUILD_SHARED_LIBS=OFF is not supported. Configure with -DBUILD_SHARED_LIBS=ON.") endif() if((BUILD_CONVERT OR BUILD_GEOMSERVER OR BUILD_IFCPYTHON) AND(NOT BUILD_IFCGEOM)) diff --git a/nix/build-all.py b/nix/build-all.py index a4e261fc70..2ed3b42174 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -1311,7 +1311,7 @@ os.makedirs(executables_dir, exist_ok=True) cmake_args = [ "-DUSE_MMAP=OFF", "-DBUILD_EXAMPLES=OFF", - "-DBUILD_SHARED_LIBS=" + OFF_ON[not BUILD_STATIC], + "-DBUILD_SHARED_LIBS=ON", "-DGLTF_SUPPORT=ON", "-DBoost_NO_BOOST_CMAKE=On", "-DADD_COMMIT_SHA=" + ("On" if ADD_COMMIT_SHA else "Off"),