summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FeatureSummary/FeatureSummaryCustomRequired.cmake
blob: 11cf04c86b77de38c6038e1f04343dd0a01a7c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include(FeatureSummary)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

set_property(GLOBAL PROPERTY FeatureSummary_PKG_TYPES TYPE1 TYPE2 TYPE3)
set_property(GLOBAL PROPERTY FeatureSummary_REQUIRED_PKG_TYPES TYPE3)
set_property(GLOBAL PROPERTY FeatureSummary_DEFAULT_PKG_TYPE TYPE2)

find_package(Foo)
find_package(Bar)

set_package_properties(Foo PROPERTIES TYPE TYPE3)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

set_package_properties(Bar PROPERTIES TYPE TYPE3)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)