Page MenuHomePhabricator

[CMAKE] Use a cmake template for config.ini
ClosedPublic

Authored by Fabien on Apr 17 2020, 14:27.

Details

Summary

This simplifies a lot the generation of the config.ini file with
cmake.

Test Plan
cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win64.cmake

Check the extension is set to .exe

cmake -GNinja ..

Check all the options but the fuzzer and bitcoind are ON

cmake -GNinja .. -DBUILD_BITCOIN_CLI=OFF -DBUILD_BITCOIN_WALLET=OFF

-DBUILD_BITCOIN_ZMQ=OFF
Check all the options are OFF

With Clang:

cmake -GNinja .. -DENABLE_SANITIZERS=fuzzer

Check the fuzzer is ON

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable