CMake/Tests/RunCMake/FeatureSummary/FeatureSummaryWhatOnce.cmake
Gregor Jasny 38ef2b7363 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>
2015-02-23 11:39:17 -05:00

9 lines
184 B
CMake

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)