You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/FeatureSummary/FeatureSummaryPurpose.cmake

17 lines
402 B

include(FeatureSummary)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_package(Foo)
# Purpose not set
feature_summary(WHAT ALL)
# Purpose set once
set_package_properties(Foo PROPERTIES PURPOSE "Because everyone needs some Foo.")
feature_summary(WHAT ALL)
# Purpose set twice
set_package_properties(Foo PROPERTIES PURPOSE "Because Foo is better than Bar.")
feature_summary(WHAT ALL)