From 4a85c818335f1132168f14ce5aafc5387110778e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 31 May 2023 13:44:24 +0200 Subject: [PATCH] Remove option SQLITE_ENABLE_JSON1 since the JSON functions and operators are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22). see issue #425 SQLITE_ENABLE_JSON1 flag does not appear to compile sqlite3 with this option --- CMakeLists.txt | 1 - sqlite3/CMakeLists.txt | 6 ------ 2 files changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d896d1f..079be29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,7 +252,6 @@ endif () option(SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project." ON) 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) diff --git a/sqlite3/CMakeLists.txt b/sqlite3/CMakeLists.txt index 3ee2dc4..388f303 100644 --- a/sqlite3/CMakeLists.txt +++ b/sqlite3/CMakeLists.txt @@ -30,12 +30,6 @@ if (SQLITE_ENABLE_COLUMN_METADATA) target_compile_definitions(sqlite3 PUBLIC SQLITE_ENABLE_COLUMN_METADATA) endif (SQLITE_ENABLE_COLUMN_METADATA) -if (SQLITE_ENABLE_JSON1) - # Enable JSON1 extension when building sqlite3 - # See more here: https://www.sqlite.org/json1.html - target_compile_definitions(sqlite3 PUBLIC SQLITE_ENABLE_JSON1) -endif (SQLITE_ENABLE_JSON1) - if (SQLITE_ENABLE_RTREE) # Enable RTree extension when building sqlite3 # See more here: https://sqlite.org/rtree.html