File tree Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ option(USE_AFLPLUSPLUS "Use AFL++ instead of libFuzzer" OFF)
1919option (ENABLE_DEBUG "Enable debug build with full symbols" OFF )
2020option (FORCE_STATIC_LINKING "Force static linking of all dependencies" OFF )
2121
22- option (USE_VENDORED_CPPSQLITE "Use the bundled version of cpp-sqlite" ON )
2322option (USE_VENDORED_CPPZMQ "Use the bundled version of cppzmq" ON )
2423option (USE_VENDORED_FLATBUFFERS "Use the bundled version of flatbuffers" ON )
2524option (USE_VENDORED_LEXY "Use the bundled version of lexy" ON )
@@ -109,11 +108,7 @@ if(BTCPP_GROOT_INTERFACE)
109108endif ()
110109
111110if (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)
117112endif ()
118113
119114if (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)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments