v30.3-roots.1 · Commit 1: [PATCH 01/68] build: adapt Roots platform support to Core 30.3
cmake/module/AddBoostIfNeeded.cmake
Before: cmake/module/AddBoostIfNeeded.cmake · After: cmake/module/AddBoostIfNeeded.cmake
File metadata
index b3f248009d8cb5abf4e62dda78c6219f15e732e6..38b08885250c859d664f48680d6e252cde04127d 100644
Download original patch · Release notes
Diff rows 1–25 of 25. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
cmake/module/AddBoostIfNeeded.cmake
CHANGED
|
@@ -3,6 +3,25 @@
|
|
| 3 |
# file COPYING or https://opensource.org/license/mit/.
|
| 4 |
|
| 5 |
function(add_boost_if_needed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
#[=[
|
| 7 |
TODO: Not all targets, which will be added in the future, require
|
| 8 |
Boost. Therefore, a proper check will be appropriate here.
|
|
|
|
| 3 |
# file COPYING or https://opensource.org/license/mit/.
|
| 4 |
|
| 5 |
function(add_boost_if_needed)
|
| 6 |
+
if(BUILD_DAEMON)
|
| 7 |
+
elseif(BUILD_CLI)
|
| 8 |
+
# BUILD_BITCOINCONSENSUS_LIB does NOT require boost
|
| 9 |
+
elseif(BUILD_TX)
|
| 10 |
+
elseif(BUILD_UTIL)
|
| 11 |
+
elseif(BUILD_UTIL_CHAINSTATE)
|
| 12 |
+
elseif(BUILD_KERNEL_LIB)
|
| 13 |
+
elseif(BUILD_WALLET_TOOL)
|
| 14 |
+
elseif(BUILD_GUI)
|
| 15 |
+
elseif(BUILD_TESTS)
|
| 16 |
+
elseif(BUILD_GUI_TESTS)
|
| 17 |
+
elseif(BUILD_BENCH)
|
| 18 |
+
elseif(BUILD_FUZZ_BINARY)
|
| 19 |
+
else()
|
| 20 |
+
# No targets that require boost; but we still define them, so make a dummy "library"
|
| 21 |
+
add_library(Boost::headers INTERFACE IMPORTED)
|
| 22 |
+
return()
|
| 23 |
+
endif()
|
| 24 |
+
|
| 25 |
#[=[
|
| 26 |
TODO: Not all targets, which will be added in the future, require
|
| 27 |
Boost. Therefore, a proper check will be appropriate here.
|