@@ -65,8 +65,11 @@ include(CMakeDependentOption)
65
65
option (BUILD_DAEMON "Build bitcoind executable." ON )
66
66
option (BUILD_GUI "Build bitcoin-qt executable." OFF )
67
67
option (BUILD_CLI "Build bitcoin-cli executable." ON )
68
- option (BUILD_TX "Build bitcoin-tx executable." ON )
69
- option (BUILD_UTIL "Build bitcoin-util executable." ON )
68
+
69
+ option (BUILD_TESTS "Build test_bitcoin executable." ON )
70
+ option (BUILD_TX "Build bitcoin-tx executable." ${BUILD_TESTS} )
71
+ option (BUILD_UTIL "Build bitcoin-util executable." ${BUILD_TESTS} )
72
+
70
73
option (BUILD_UTIL_CHAINSTATE "Build experimental bitcoin-chainstate executable." OFF )
71
74
option (BUILD_KERNEL_LIB "Build experimental bitcoinkernel library." ${BUILD_UTIL_CHAINSTATE} )
72
75
@@ -99,7 +102,7 @@ if(WITH_BDB)
99
102
endif ()
100
103
endif ()
101
104
endif ()
102
- cmake_dependent_option(BUILD_WALLET_TOOL "Build bitcoin-wallet tool." ON "ENABLE_WALLET" OFF )
105
+ cmake_dependent_option(BUILD_WALLET_TOOL "Build bitcoin-wallet tool." ${BUILD_TESTS} "ENABLE_WALLET" OFF )
103
106
104
107
option (ENABLE_THREADLOCAL "Enable features that depend on the C++ thread_local keyword (currently just thread names in debug logs)." ON )
105
108
option (ENABLE_HARDENING "Attempt to harden the resulting executables." ON )
@@ -160,7 +163,6 @@ if(WITH_MULTIPROCESS)
160
163
find_package (LibmultiprocessGen CONFIG REQUIRED)
161
164
endif ()
162
165
163
- option (BUILD_TESTS "Build test_bitcoin executable." ON )
164
166
cmake_dependent_option(BUILD_GUI_TESTS "Build test_bitcoin-qt executable." ON "BUILD_GUI;BUILD_TESTS" OFF )
165
167
option (BUILD_BENCH "Build bench_bitcoin executable." OFF )
166
168
option (BUILD_FUZZ_BINARY "Build fuzz binary." OFF )
0 commit comments