mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja bitcoin-util-test
ninja check-bitcoin-util-test
ninja check
Should return an unknown target error, as bitcoin-tx is required:
cmake -DBUILD_BITCOIN_TX=OFF -GNinja .. && ninja
check-bitcoin-util-test
Should run the tests but not bitcoin-util-test:
cmake -DBUILD_BITCOIN_TX=OFF -GNinja .. && ninja check