Skip to content

Commit ee37e4e

Browse files
authored
Merge pull request #338 fix load extension from paulo-coutinho/fix-load-extension
2 parents 44bd9c4 + 925923c commit ee37e4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ if (SQLITE_USE_LEGACY_STRUCT)
209209
target_compile_definitions(SQLiteCpp PUBLIC SQLITE_USE_LEGACY_STRUCT)
210210
endif (SQLITE_USE_LEGACY_STRUCT)
211211

212+
option(SQLITE_OMIT_LOAD_EXTENSION "Enable omit load extension" OFF)
213+
if (SQLITE_OMIT_LOAD_EXTENSION)
214+
# Enable the user definition of load_extension().
215+
target_compile_definitions(SQLiteCpp PUBLIC SQLITE_OMIT_LOAD_EXTENSION)
216+
endif (SQLITE_OMIT_LOAD_EXTENSION)
217+
212218
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
213219
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
214220
endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))

0 commit comments

Comments
 (0)