File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ option(SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project
253253if (SQLITECPP_INTERNAL_SQLITE)
254254 message (STATUS "Compile sqlite3 from source in subdirectory" )
255255 option (SQLITE_ENABLE_RTREE "Enable RTree extension when building internal sqlite3 library." OFF )
256+ option (SQLITE_ENABLE_DBSTAT_VTAB "Enable DBSTAT read-only eponymous virtual table extension when building internal sqlite3 library." OFF )
256257 # build the SQLite3 C library (for ease of use/compatibility) versus Linux sqlite3-dev package
257258 add_subdirectory (sqlite3)
258259 target_link_libraries (SQLiteCpp PUBLIC SQLite::SQLite3)
Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ if (SQLITE_ENABLE_RTREE)
3737 message (STATUS "Compile sqlite3 with SQLITE_ENABLE_RTREE" )
3838endif (SQLITE_ENABLE_RTREE)
3939
40+ if (SQLITE_ENABLE_DBSTAT_VTAB)
41+ # Enable DBSTAT extension when building sqlite3
42+ # See more here: https://www.sqlite.org/dbstat.html
43+ target_compile_definitions (sqlite3 PUBLIC SQLITE_ENABLE_DBSTAT_VTAB)
44+ message (STATUS "Compile sqlite3 with SQLITE_ENABLE_DBSTAT_VTAB" )
45+ endif (SQLITE_ENABLE_DBSTAT_VTAB)
46+
4047if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" ))
4148 set_target_properties (sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC" )
4249
You can’t perform that action at this time.
0 commit comments