cmake: export document_serializer_rdb

There was an error building a standalone ifcwrap when previously built IfcOpenShell had rocksdb - `_ifcopenshell_wrapper.cpython-314-x86_64-linux-gnu.so: undefined symbol: _ZTV17RocksDbSerializer`.

`IFOPSH_WITH_ROCKSDB` propagated to the build, requiring rocksdb symbols, but `WITH_ROCKSDB` wasn't set and `document_serializer_rdb` target wasn't provided.
This commit is contained in:
Andrej730
2026-09-03 15:10:17 +05:00
parent 2db248e017
commit 57a9e1e304
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -50,6 +50,7 @@ if(IFCOPENSHELL_IFCWRAP_STANDALONE)
set(WITH_OPENCASCADE "${IFCOPENSHELL_WITH_OPENCASCADE}")
set(WITH_CGAL "${IFCOPENSHELL_WITH_CGAL}")
set(WITH_ROCKSDB "${IFCOPENSHELL_WITH_ROCKSDB}")
set(SWIG_DEFINES "")
if(IFCOPENSHELL_WITH_OPENCASCADE)
@@ -67,6 +68,7 @@ if(IFCOPENSHELL_IFCWRAP_STANDALONE)
if(IFCOPENSHELL_WITH_ROCKSDB)
list(APPEND SWIG_DEFINES -DIFOPSH_WITH_ROCKSDB)
list(APPEND _ifcwrap_feature_definitions IFOPSH_WITH_ROCKSDB)
add_library(document_serializer_rdb ALIAS IfcOpenShell::document_serializer_rdb)
endif()
endif()