mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
Support RocksDB shared library and new unique_ptr DB::Open API
Some distributions (e.g. Fedora) ship only a shared RocksDB that exports RocksDB::rocksdb-shared rather than RocksDB::rocksdb. The CMake target selection now falls back to the shared target when the static one is absent. Newer RocksDB also changed DB::Open and DB::OpenForReadOnly to take std::unique_ptr<DB>* instead of DB**. IfcFile.cpp uses SFINAE tag dispatch to build against both old and new APIs without version detection.
This commit is contained in:
committed by
Thomas Krijnen
parent
5f7d9b86b8
commit
818ca6b2bc
@@ -56,7 +56,7 @@ function(add_geometry_serializer_plugin target output_name)
|
||||
endfunction()
|
||||
|
||||
if(WITH_ROCKSDB)
|
||||
add_document_serializer_plugin(document_serializer_rdb "document.rdb" SOURCES document_rdb_plugin.cpp RocksDbSerializer.cpp LIBRARIES RocksDB::rocksdb)
|
||||
add_document_serializer_plugin(document_serializer_rdb "document.rdb" SOURCES document_rdb_plugin.cpp RocksDbSerializer.cpp LIBRARIES ${IFCOPENSHELL_ROCKSDB_TARGET})
|
||||
endif()
|
||||
|
||||
add_subdirectory(schema_dependent)
|
||||
|
||||
Reference in New Issue
Block a user