summaryrefslogtreecommitdiffstats
path: root/Modules/FeatureSummary.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-02-22 20:06:27 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-23 16:39:17 (GMT)
commit38ef2b7363533746cfc14dbc55d696de3cc75386 (patch)
tree2f727fd38ed731fe64eedc8964f3b46fb1ec6a98 /Modules/FeatureSummary.cmake
parentcb16c7844dce627ab40f404c6ac49db3cde7b0c0 (diff)
downloadCMake-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.cmake3
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})