We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44bd9c4 + 925923c commit ee37e4eCopy full SHA for ee37e4e
CMakeLists.txt
@@ -209,6 +209,12 @@ if (SQLITE_USE_LEGACY_STRUCT)
209
target_compile_definitions(SQLiteCpp PUBLIC SQLITE_USE_LEGACY_STRUCT)
210
endif (SQLITE_USE_LEGACY_STRUCT)
211
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
+
218
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
219
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
220
endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
0 commit comments