sqlite3: set SQLITE_OMIT_LOAD_EXTENSION (#496)

Addresses #495.
This commit is contained in:
Sébastien Rombauts 2025-01-24 13:17:38 +01:00 committed by GitHub
commit 211e642a30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,11 @@ if (SQLITE_ENABLE_DBSTAT_VTAB)
message(STATUS "Compile sqlite3 with SQLITE_ENABLE_DBSTAT_VTAB") message(STATUS "Compile sqlite3 with SQLITE_ENABLE_DBSTAT_VTAB")
endif (SQLITE_ENABLE_DBSTAT_VTAB) endif (SQLITE_ENABLE_DBSTAT_VTAB)
if (SQLITE_OMIT_LOAD_EXTENSION)
target_compile_definitions(sqlite3 PUBLIC SQLITE_OMIT_LOAD_EXTENSION)
message(STATUS "Compile sqlite3 with SQLITE_OMIT_LOAD_EXTENSION")
endif (SQLITE_OMIT_LOAD_EXTENSION)
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")) if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
set_target_properties(sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC") set_target_properties(sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC")