Page MenuHomePhabricator

[CMAKE] Add compiler flags to some build configuration only
ClosedPublic

Authored by Fabien on Jan 15 2020, 17:04.

Details

Summary

This adds new facilities to add flags or definitions that only apply to
some build configuration. This is especially useful to pass debug only
flags.

Test Plan
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Debug
ninja -v check

Ensure the flags and definitions are correctly passed on the compilation
lines.

Diff Detail

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