[cmake-developers] [Review request] Topic FeatureSummary_combine_WHAT_values
Daniele E. Domenichelli
daniele.domenichelli at gmail.com
Fri Feb 28 12:17:05 EST 2014
Dear CMake developers,
Please review the topic FeatureSummary_combine_WHAT_values.
This patch allows to combine and reorder values for the "WHAT" option in
FeatureSummary.
For example it is now possible to do
feature_summary(WHAT ENABLED_FEATURES
DISABLED_FEATURES)
That produces an output like:
--
-- The following features have been enabled:
* Feature1
* Feature2
-- The following features have been disabled:
* Feature2
Skipping the lists that are empty.
Without this patch this would require to do:
message(STATUS "")
feature_summary(WHAT ENABLED_FEATURES
DESCRIPTION "The following features have been enabled:")
feature_summary(WHAT DISABLED_FEATURES
DESCRIPTION "The following features have been disabled:")
And empty lists would not be skipped.
The behaviour when WHAT has a single argument (ALL or any option) is
unchanged.
Thanks.
Regards,
Daniele
P.S. Sorry if I disappeared but I've been very busy, I should have some
more time now to finish the other patches that I left behind.
More information about the cmake-developers
mailing list