@@ -69,6 +69,7 @@ set(SQLITE_MAX_ALLOCATION_SIZE -1 CACHE STRING "Set an upper bound on the size o
6969set (SQLITE_MAX_EXPR_DEPTH -1 CACHE STRING "Set the maximum expression tree depth." )
7070
7171option (SQLITE_ENABLE_API_ARMOR "This option activates extra code that attempts to detect misuse of the SQLite API." OFF )
72+ option (SQLITE_ENABLE_CARRAY "Enable the carray() extension." OFF )
7273option (SQLITE_ENABLE_COLUMN_METADATA "Enable some extra APIs that are required by some common systems, including Ruby-on-Rails." OFF )
7374option (SQLITE_ENABLE_DBSTAT_VTAB "This option enables the dbstat virtual table." OFF )
7475option (SQLITE_ENABLE_EXPLAIN_COMMENTS "This option adds extra logic to SQLite that inserts comment text into the output of EXPLAIN." OFF )
@@ -80,6 +81,7 @@ option(SQLITE_ENABLE_GEOPOLY "Enable the Geopoly extension." OFF)
8081option (SQLITE_ENABLE_ICU "Enable the ICU (International Components for Unicode) extension" OFF )
8182option (SQLITE_ENABLE_MATH_FUNCTIONS "Enable the built-in SQL math functions." ON )
8283option (SQLITE_ENABLE_NORMALIZE "Enable the sqlite3_normalized_sql() API." OFF )
84+ option (SQLITE_ENABLE_PERCENTILE "Enable the percentile extension." OFF )
8385option (SQLITE_ENABLE_PREUPDATE_HOOK "Enable the pre-update hook feature." OFF )
8486option (SQLITE_ENABLE_RBU "Enable the code that implements the RBU extension." OFF )
8587option (SQLITE_ENABLE_RTREE "This option causes SQLite to include support for the R*Tree index extension." OFF )
@@ -224,6 +226,10 @@ if(WIN32 AND BUILD_SHARED_LIBS)
224226 INTERFACE "SQLITE_API=__declspec(dllimport)" )
225227endif ()
226228
229+ if (SQLITE_ENABLE_CARRAY)
230+ target_compile_definitions (SQLite3 PUBLIC SQLITE_ENABLE_CARRAY)
231+ endif ()
232+
227233if (SQLITE_ENABLE_NORMALIZE)
228234 target_compile_definitions (SQLite3 PUBLIC SQLITE_ENABLE_NORMALIZE)
229235endif ()
@@ -272,6 +278,7 @@ target_compile_definitions(SQLite3
272278 $<$<BOOL :${SQLITE_ENABLE_GEOPOLY} >:SQLITE_ENABLE_GEOPOLY>
273279 $<$<BOOL :${SQLITE_ENABLE_ICU} >:SQLITE_ENABLE_ICU>
274280 $<$<BOOL :${SQLITE_ENABLE_MATH_FUNCTIONS} >:SQLITE_ENABLE_MATH_FUNCTIONS>
281+ $<$<BOOL :${SQLITE_ENABLE_PERCENTILE} >:SQLITE_ENABLE_PERCENTILE>
275282 $<$<BOOL :${SQLITE_ENABLE_RBU} >:SQLITE_ENABLE_RBU>
276283 $<$<BOOL :${SQLITE_ENABLE_RTREE} >:SQLITE_ENABLE_RTREE>
277284 $<$<BOOL :${SQLITE_ENABLE_STMTVTAB} >:SQLITE_ENABLE_STMTVTAB>
0 commit comments