There was an error while loading. Please reload this page.
1 parent f320323 commit 970d951Copy full SHA for 970d951
1 file changed
cloud/src/snapshot/CMakeLists.txt
@@ -18,4 +18,10 @@
18
set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
19
set(EXECUTABLE_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
20
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lfdb_c -L${THIRDPARTY_DIR}/lib")
21
-add_library(Snapshot snapshot_manager.cpp snapshot_manager_factory.cpp)
+
22
+# Extension modules may replace the factory while reusing the public SnapshotManager API.
23
+if (NOT DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE)
24
+ set(DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE snapshot_manager_factory.cpp)
25
+endif()
26
27
+add_library(Snapshot snapshot_manager.cpp ${DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE})
0 commit comments