Allow building of sqlite JSON1 extension when building internal sqlit… · SRombauts/SQLiteCpp@0d2294e (original) (raw)

Original file line number Diff line number Diff line change
@@ -228,6 +228,7 @@ endif ()
228 228 option(SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project." ON)
229 229 if (SQLITECPP_INTERNAL_SQLITE)
230 230 message(STATUS "Compile sqlite3 from source in subdirectory")
231 + option(SQLITE_ENABLE_JSON1 "Enable JSON1 extension when building internal sqlite3 library." ON)
231 232 # build the SQLite3 C library (for ease of use/compatibility) versus Linux sqlite3-dev package
232 233 add_subdirectory(sqlite3)
233 234 target_link_libraries(SQLiteCpp PUBLIC sqlite3)