Skip to content

Commit b21cb25

Browse files
committed
Update changes after cpp-sqlite removal
1 parent 81bc7e4 commit b21cb25

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

3rdparty/cpp-sqlite/CMakeLists.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ option(USE_AFLPLUSPLUS "Use AFL++ instead of libFuzzer" OFF)
1919
option(ENABLE_DEBUG "Enable debug build with full symbols" OFF)
2020
option(FORCE_STATIC_LINKING "Force static linking of all dependencies" OFF)
2121

22-
option(USE_VENDORED_CPPSQLITE "Use the bundled version of cpp-sqlite" ON)
2322
option(USE_VENDORED_CPPZMQ "Use the bundled version of cppzmq" ON)
2423
option(USE_VENDORED_FLATBUFFERS "Use the bundled version of flatbuffers" ON)
2524
option(USE_VENDORED_LEXY "Use the bundled version of lexy" ON)
@@ -109,11 +108,7 @@ if(BTCPP_GROOT_INTERFACE)
109108
endif()
110109

111110
if(BTCPP_SQLITE_LOGGING)
112-
if(USE_VENDORED_CPPSQLITE)
113-
add_subdirectory(3rdparty/cpp-sqlite)
114-
else()
115-
find_package(cpp-sqlite REQUIRED)
116-
endif()
111+
find_package(SQLite3 REQUIRED)
117112
endif()
118113

119114
if(USE_VENDORED_FLATBUFFERS)
@@ -230,8 +225,8 @@ target_link_libraries(${BTCPP_LIBRARY}
230225
tinyxml2::tinyxml2
231226
minicoro::minicoro
232227
flatbuffers::flatbuffers
233-
cpp-sqlite::cpp-sqlite
234-
cppzmq
228+
$<$<BOOL:${BTCPP_GROOT_INTERFACE}>:cppzmq>
229+
$<$<BOOL:${BTCPP_SQLITE_LOGGING}>:SQLite::SQLite3>
235230
PUBLIC
236231
${BTCPP_EXTRA_LIBRARIES}
237232
)

conanfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ def requirements(self):
1919
self.requires("flatbuffers/24.12.23")
2020
self.requires("minicoro/0.1.3")
2121
self.requires("minitrace/cci.20230905")
22-
self.requires("sqlite3/3.40.1") # This should be a transitive dependency of cpp-sqlite
22+
self.requires("sqlite3/3.40.1")
2323
self.requires("tinyxml2/10.0.0")
2424
self.requires("cppzmq/4.11.0")
2525
self.requires("foonathan-lexy/2022.12.1")
2626

2727
def generate(self):
2828
tc = CMakeToolchain(self)
2929

30-
#tc.cache_variables["USE_VENDORED_CPPSQLITE"] = False
3130
tc.cache_variables["USE_VENDORED_CPPZMQ"] = False
3231
tc.cache_variables["USE_VENDORED_FLATBUFFERS"] = False
3332
tc.cache_variables["USE_VENDORED_LEXY"] = False

0 commit comments

Comments
 (0)