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
Branch
cmake_add_options_to_configuration
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8960
Build 15893: Default Diff Build & Tests
Build 15892: arc lint + arc unit