mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 18:56:40 -04:00
Add CMake option SQLITE_ENABLE_RTREE to enable RTree extension when building internal sqlite3 library
See more here: https://sqlite.org/rtree.html Disabled by default
This commit is contained in:
parent
23a16ed341
commit
2d8f4b9c18
@ -253,6 +253,7 @@ option(SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project
|
||||
if (SQLITECPP_INTERNAL_SQLITE)
|
||||
message(STATUS "Compile sqlite3 from source in subdirectory")
|
||||
option(SQLITE_ENABLE_JSON1 "Enable JSON1 extension when building internal sqlite3 library." ON)
|
||||
option(SQLITE_ENABLE_RTREE "Enable RTree extension when building internal sqlite3 library." OFF)
|
||||
# build the SQLite3 C library (for ease of use/compatibility) versus Linux sqlite3-dev package
|
||||
add_subdirectory(sqlite3)
|
||||
target_link_libraries(SQLiteCpp PUBLIC SQLite::SQLite3)
|
||||
|
@ -36,10 +36,11 @@ if (SQLITE_ENABLE_JSON1)
|
||||
target_compile_definitions(sqlite3 PUBLIC SQLITE_ENABLE_JSON1)
|
||||
endif (SQLITE_ENABLE_JSON1)
|
||||
|
||||
if(SQLITE_ENABLE_RTREE)
|
||||
if (SQLITE_ENABLE_RTREE)
|
||||
# Enable RTree extension when building sqlite3
|
||||
# See more here: https://sqlite.org/rtree.html
|
||||
target_compile_definitions(sqlite3 PUBLIC SQLITE_ENABLE_RTREE)
|
||||
message(STATUS "Compile sqlite3 with SQLITE_ENABLE_RTREE")
|
||||
endif (SQLITE_ENABLE_RTREE)
|
||||
|
||||
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user