Skip to content

Commit 4b5d91d

Browse files
committed
Fix SQLite build with 3.7.17
3.7.17 < 3.14.0 The sqlite3_expanded_sql() was added in SQLite 3.14.0, so checking is still needed here.
1 parent 5ec1adf commit 4b5d91d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/ext/sqlite3/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ if(TARGET SQLite::SQLite3)
8181
cmake_push_check_state(RESET)
8282
set(CMAKE_REQUIRED_LIBRARIES SQLite::SQLite3)
8383

84+
check_symbol_exists(sqlite3_expanded_sql sqlite3.h HAVE_SQLITE3_EXPANDED_SQL)
85+
8486
check_symbol_exists(
8587
sqlite3_load_extension
8688
sqlite3.h
@@ -92,7 +94,6 @@ if(TARGET SQLite::SQLite3)
9294
cmake_pop_check_state()
9395

9496
set(HAVE_SQLITE3_ERRSTR TRUE)
95-
set(HAVE_SQLITE3_EXPANDED_SQL TRUE)
9697
endif()
9798

9899
set(HAVE_SQLITE3 TRUE)

0 commit comments

Comments
 (0)