Skip to content

build: disable bitcoin-node if daemon is not built

When building for fuzzing with multiprocess enabled, we were still trying to build bitcoin-node. This PR fixes that, by applying a similar check as for bitcoin-gui.

Before:

cmake -B build -DBUILD_FOR_FUZZING=ON -DWITH_MULTIPROCESS=ON

...

Configure summary
=================
Executables:
  bitcoind ............................ OFF
  bitcoin-node (multiprocess) ......... ON
  bitcoin-qt (GUI) .................... OFF
  bitcoin-gui (GUI, multiprocess) ..... OFF

...

cmake --build build

...

[ 84%] Built target bitcoin-node

After:

  bitcoin-node (multiprocess) ......... OFF

And no bitcoin-node target gets built (not to be confused with bitcoin_node).

Merge request reports

Loading