Skip to content

Commit e3ddbd9

Browse files
committed
sqlite3/CMakeLists.txt: set SQLITE_OMIT_LOAD_EXTENSION for sqlite3 is the option is enabled
1 parent 643b153 commit e3ddbd9

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)