diff options
author | Brad King <brad.king@kitware.com> | 2015-02-24 14:12:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-02-24 14:12:43 (GMT) |
commit | 13f9f848defa75f7d728050b4d99d44b194642b2 (patch) | |
tree | 88f5a7372c6eaf797a60188672599d04ad871e5b /Modules | |
parent | 3bda0717b31aa63e906cbc6129674a9e046f1066 (diff) | |
parent | 38ef2b7363533746cfc14dbc55d696de3cc75386 (diff) | |
download | CMake-13f9f848defa75f7d728050b4d99d44b194642b2.zip CMake-13f9f848defa75f7d728050b4d99d44b194642b2.tar.gz CMake-13f9f848defa75f7d728050b4d99d44b194642b2.tar.bz2 |
Merge topic 'FeatureSummary-no-duplicates'
38ef2b73 FeatureSummary: Print each feature info only once
Diffstat (limited to 'Modules')
-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}) |