Page MenuHomePhabricator

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

Authored by Fabien on Jun 1 2020, 13:13.

Details

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.

Event Timeline

Fabien requested review of this revision.Jun 1 2020, 13:13
This revision is now accepted and ready to land.Jun 1 2020, 13:18