Merge topic 'FeatureSummary-no-duplicates'
38ef2b73 FeatureSummary: Print each feature info only once
This commit is contained in:
commit
13f9f848de
Modules
Tests/RunCMake/FeatureSummary
@ -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})
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
--( )
|
||||
\* Foo , Foo decscription\.
|
||||
+
|
||||
--
|
@ -0,0 +1,8 @@
|
||||
include(FeatureSummary)
|
||||
|
||||
set(WITH_FOO 1)
|
||||
|
||||
add_feature_info(Foo WITH_FOO "Foo decscription.")
|
||||
add_feature_info(Foo WITH_FOO "Foo decscription.")
|
||||
|
||||
feature_summary(WHAT ENABLED_FEATURES)
|
@ -6,3 +6,4 @@ run_cmake(FeatureSummaryWhatSingleUnknown)
|
||||
run_cmake(FeatureSummaryWhatList)
|
||||
run_cmake(FeatureSummaryWhatListUnknown)
|
||||
run_cmake(FeatureSummaryWhatListAll)
|
||||
run_cmake(FeatureSummaryWhatOnce)
|
||||
|
Loading…
x
Reference in New Issue
Block a user