Skip to content

Commit 211e642

Browse files
authored
sqlite3: set SQLITE_OMIT_LOAD_EXTENSION (#496)
Addresses #495.
2 parents 643b153 + e3ddbd9 commit 211e642

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sqlite3/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ if (SQLITE_ENABLE_DBSTAT_VTAB)
4444
message(STATUS "Compile sqlite3 with SQLITE_ENABLE_DBSTAT_VTAB")
4545
endif (SQLITE_ENABLE_DBSTAT_VTAB)
4646

47+
if (SQLITE_OMIT_LOAD_EXTENSION)
48+
target_compile_definitions(sqlite3 PUBLIC SQLITE_OMIT_LOAD_EXTENSION)
49+
message(STATUS "Compile sqlite3 with SQLITE_OMIT_LOAD_EXTENSION")
50+
endif (SQLITE_OMIT_LOAD_EXTENSION)
51+
4752
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
4853
set_target_properties(sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC")
4954

0 commit comments

Comments
 (0)