diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-02-22 20:06:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-23 16:39:17 (GMT) |
commit | 38ef2b7363533746cfc14dbc55d696de3cc75386 (patch) | |
tree | 2f727fd38ed731fe64eedc8964f3b46fb1ec6a98 /Modules/FeatureSummary.cmake | |
parent | cb16c7844dce627ab40f404c6ac49db3cde7b0c0 (diff) | |
download | CMake-38ef2b7363533746cfc14dbc55d696de3cc75386.zip CMake-38ef2b7363533746cfc14dbc55d696de3cc75386.tar.gz CMake-38ef2b7363533746cfc14dbc55d696de3cc75386.tar.bz2 |
FeatureSummary: Print each feature info only once
If a feature is added multiple times via ADD_FEATURE_INFO it should
appear only once in FEATURE_SUMMARY.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Modules/FeatureSummary.cmake')
-rw-r--r-- | Modules/FeatureSummary.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FeatureSummary.cmake b/Modules/FeatureSummary.cmake index 3eea9db..ce5a4ed 100644 --- a/Modules/FeatureSummary.cmake +++ b/Modules/FeatureSummary.cmake @@ -379,6 +379,9 @@ function(_FS_GET_FEATURE_SUMMARY _property _var _includeQuiet) set(_currentFeatureText "") get_property(_EnabledFeatures GLOBAL PROPERTY ${_property}) + if(_EnabledFeatures) + list(REMOVE_DUPLICATES _EnabledFeatures) + endif(_EnabledFeatures) foreach(_currentFeature ${_EnabledFeatures}) |