We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f192f2 + 9861d79 commit 0871e2fCopy full SHA for 0871e2f
1 file changed
cpp/src/CCDB/CMakeLists.txt
@@ -30,6 +30,15 @@ add_library(ccdb SHARED
30
target_include_directories(ccdb PUBLIC "${PROJECT_SOURCE_DIR}/..")
31
set_target_properties(ccdb PROPERTIES POSITION_INDEPENDENT_CODE ON)
32
33
+option(CCDB_CACHE_ON "Enable CCDB cache support" OFF)
34
+
35
+if(CCDB_CACHE_ON)
36
+ message(STATUS "Cache is ENABLED")
37
+ target_compile_definitions(ccdb PUBLIC CCDB_CACHE_ON)
38
+else()
39
+ message(STATUS "Cache is DISABLED")
40
+endif()
41
42
# Add SQLITE3
43
find_package (SQLite3 REQUIRED)
44
if (SQLite3_FOUND)
0 commit comments