summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageTest/RelocatableConfig.cmake.in
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-03-18 20:26:37 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-19 14:53:36 (GMT)
commitd81d83c218be6f8047c1c9cea63e69bc1ad4d9c0 (patch)
treeaa74580a663929ef1c8807002f42cea9930ed041 /Tests/FindPackageTest/RelocatableConfig.cmake.in
parentb15c0b418bc1239cfea1c605603e61c74023a8fb (diff)
downloadCMake-d81d83c218be6f8047c1c9cea63e69bc1ad4d9c0.zip
CMake-d81d83c218be6f8047c1c9cea63e69bc1ad4d9c0.tar.gz
CMake-d81d83c218be6f8047c1c9cea63e69bc1ad4d9c0.tar.bz2
add macro check_required_components() to configure_package_config_file()
As discussed on cmake-developers, this patch adds a macro check_required_components() to the file configured via configure_package_config_file(), so for proper handling of components in Config.cmake files users can simply call check_required_components(PackageName) and this will do the right thing. Alex
Diffstat (limited to 'Tests/FindPackageTest/RelocatableConfig.cmake.in')
-rw-r--r--Tests/FindPackageTest/RelocatableConfig.cmake.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/RelocatableConfig.cmake.in b/Tests/FindPackageTest/RelocatableConfig.cmake.in
index 7a34b2f..4a4b4e9 100644
--- a/Tests/FindPackageTest/RelocatableConfig.cmake.in
+++ b/Tests/FindPackageTest/RelocatableConfig.cmake.in
@@ -3,3 +3,9 @@
set(RELOC_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set(RELOC_SHARE_DIR "@PACKAGE_SHARE_INSTALL_DIR@")
set_and_check(RELOC_BUILD_DIR "@PACKAGE_CURRENT_BUILD_DIR@")
+
+set(Relocatable_AComp_FOUND TRUE)
+set(Relocatable_BComp_FOUND FALSE)
+set(Relocatable_CComp_FOUND FALSE)
+
+check_required_components(Relocatable)