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.
1 parent a5bba0c commit 25b80b9Copy full SHA for 25b80b9
CMakeLists.txt
@@ -50,7 +50,20 @@ endif()
50
set(THREADS_PREFER_PTHREAD_FLAG FALSE)
51
find_package(Threads REQUIRED)
52
53
-find_package(SQLite3 REQUIRED)
+find_package(SQLite3 QUIET)
54
+if(NOT SQLite3_FOUND)
55
+ include(FetchContent)
56
+
57
+ message("-- Vendoring SQLite3")
58
+ FetchContent_Declare(SQLite
59
+ GIT_REPOSITORY https://github.com/swiftlang/swift-toolchain-sqlite
60
+ GIT_TAG main)
61
62
+ FetchContent_MakeAvailable(SQLite)
63
64
+ add_library(SQLite::SQLite3 ALIAS SQLite3)
65
+ set_property(GLOBAL APPEND PROPERTY LLBuild_EXPORTS SQLite3)
66
+endif()
67
68
# Include custom modules.
69
include(Utility)
0 commit comments