| 1 | Unbundles sqlitecpp dependency.
|
| 2 |
|
| 3 | patch by bdunahu <[email protected]>
|
| 4 |
|
| 5 | diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
|
| 6 | index 46c0c26e1..d4ea7d860 100644
|
| 7 | |
| 8 | |
| 9 | @@ -68,18 +68,7 @@ set(SQLITE_HAS_CODEC OFF CACHE BOOL "Enable database encryption API. Not availab
|
| 10 | if(SQLite3_VERSION VERSION_LESS 3.19)
|
| 11 | set(SQLITE_USE_LEGACY_STRUCT ON CACHE BOOL "Fallback to forward declaration of legacy struct sqlite3_value (pre SQLite 3.19)" FORCE)
|
| 12 | endif()
|
| 13 | -set(SQLITECPP_INTERNAL_SQLITE OFF CACHE BOOL "Add the internal SQLite3 source to the project." FORCE)
|
| 14 | -set(SQLITECPP_INCLUDE_SCRIPT OFF CACHE BOOL "Include config & script files." FORCE)
|
| 15 | -set(SQLITECPP_RUN_CPPLINT OFF CACHE BOOL "Run cpplint.py tool for Google C++ StyleGuide." FORCE)
|
| 16 | -set(SQLITECPP_RUN_CPPCHECK OFF CACHE BOOL "Run cppcheck C++ static analysis tool." FORCE)
|
| 17 | -set(SQLITECPP_BUILD_EXAMPLES OFF CACHE BOOL "Build examples." FORCE)
|
| 18 | -set(SQLITECPP_BUILD_TESTS OFF CACHE BOOL "Build and run tests." FORCE)
|
| 19 | -set(SQLITECPP_INSTALL OFF CACHE BOOL "Enables the install target." FORCE)
|
| 20 | -if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
|
| 21 | - set(SQLITECPP_USE_STACK_PROTECTION OFF CACHE BOOL "USE Stack Protection hardening." FORCE)
|
| 22 | -endif()
|
| 23 | -add_subdirectory(SQLiteCpp EXCLUDE_FROM_ALL)
|
| 24 | -set_property(TARGET SQLiteCpp PROPERTY FOLDER "3rdparty")
|
| 25 | +find_package(SQLiteCpp REQUIRED)
|
| 26 |
|
| 27 | # glad library
|
| 28 |
|