summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageTest/FindLotsOfComponents.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-03-18 18:15:42 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-19 14:53:36 (GMT)
commitb15c0b418bc1239cfea1c605603e61c74023a8fb (patch)
treec86fd7b121a01226927e6e7d61e9454aff5e7d7e /Tests/FindPackageTest/FindLotsOfComponents.cmake
parent34108cd3b3bf992c0e77ae604125cb73e023f6a8 (diff)
downloadCMake-b15c0b418bc1239cfea1c605603e61c74023a8fb.zip
CMake-b15c0b418bc1239cfea1c605603e61c74023a8fb.tar.gz
CMake-b15c0b418bc1239cfea1c605603e61c74023a8fb.tar.bz2
FPHSA(): add HANDLE_COMPONENTS option
if the HANDLE_COMPONENTS is used, FPHSA() now also checks all required COMPONENTS, i.e. all elements from <name>_FIND_COMPONENTS for which <name>_FIND_REQUIRED_<comp> is true, and sets <name>_FOUND only to true if all have been found. As discussed on cmake-developers. Alex
Diffstat (limited to 'Tests/FindPackageTest/FindLotsOfComponents.cmake')
-rw-r--r--Tests/FindPackageTest/FindLotsOfComponents.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/FindLotsOfComponents.cmake b/Tests/FindPackageTest/FindLotsOfComponents.cmake
new file mode 100644
index 0000000..9076d86
--- /dev/null
+++ b/Tests/FindPackageTest/FindLotsOfComponents.cmake
@@ -0,0 +1,10 @@
+set(LOC_FOO TRUE)
+
+set(LotsOfComponents_AComp_FOUND TRUE)
+set(LotsOfComponents_BComp_FOUND FALSE)
+set(LotsOfComponents_CComp_FOUND TRUE)
+
+include(FindPackageHandleStandardArgs)
+
+find_package_handle_standard_args(LotsOfComponents REQUIRED_VARS LOC_FOO
+ HANDLE_COMPONENTS)