Page MenuHomePhabricator

[CMAKE] Make the source control tools inclusion an option
ClosedPublic

Authored by Fabien on Dec 5 2019, 13:22.

Details

Summary

And disable it by default. The check-source-control-tools would fail
on systems where bash in not installed. With this diff cmake errors
out with a meaningful message if unavailable.

Test Plan
sed -i 's/bash/trash/g' ../contrib/source-control-tools/CMakeLists.txt

Should work:

cmake -GNinja ..

Should fail:

rm -rf * && cmake -GNinja .. -DBUILD_SOURCE_CONTROL_TOOLS=ON

sed -i 's/trash/bash/g' ../contrib/source-control-tools/CMakeLists.txt

Should Work:

rm -rf * && cmake -GNinja .. -DBUILD_SOURCE_CONTROL_TOOLS=ON
ninja check-source-control-tools

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Dec 5 2019, 16:09