HomePhabricator

[CMAKE] Allow for checking support for several flags at the same time

Description

[CMAKE] Allow for checking support for several flags at the same time

Summary:
This will allow to check for group options. For example the
-Wformat-security flag depends on -Wformat for GCC.

There is currently no change in behavior.

Test Plan:
Before this diff:

mkdir -p before && cd before
cmake -GNinja .. > before.txt

After this diff:

mkdir -p after && cd after
cmake -GNinja .. > after.txt

Then:

diff before/before.txt after/after.txt

should return no difference but the build path.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6310

Details

Provenance
FabienAuthored on Jun 1 2020, 11:05
FabienPushed on Jun 1 2020, 13:37
Reviewer
Restricted Project
Differential Revision
D6310: [CMAKE] Allow for checking support for several flags at the same time
Parents
rABC61d5f3329635: [backport#15623] refactor: Expose UndoReadFromDisk in header
Branches
Unknown
Tags
Unknown