summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageTest/FindUpperCasePackage.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-02-20 18:35:11 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-22 13:31:00 (GMT)
commit7bb1abe56a05ccc50ff2c56e2df60f305af17ca4 (patch)
tree89ed15067444ce611b43d6a297586becaa9b7b78 /Tests/FindPackageTest/FindUpperCasePackage.cmake
parentf7029572ca5948ff87ba0c6e8aaff35f6fdab4f1 (diff)
downloadCMake-7bb1abe56a05ccc50ff2c56e2df60f305af17ca4.zip
CMake-7bb1abe56a05ccc50ff2c56e2df60f305af17ca4.tar.gz
CMake-7bb1abe56a05ccc50ff2c56e2df60f305af17ca4.tar.bz2
FPHSA: Add FOUND_VAR option to specify _FOUND variable name
In the new mode FPHSA now accepts a FOUND_VAR option, which can be set either to ExactCase_FOUND or UPPERCASE_FOUND, no other values are accepted. Also add tests for that, including failure. Alex
Diffstat (limited to 'Tests/FindPackageTest/FindUpperCasePackage.cmake')
-rw-r--r--Tests/FindPackageTest/FindUpperCasePackage.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/FindUpperCasePackage.cmake b/Tests/FindPackageTest/FindUpperCasePackage.cmake
new file mode 100644
index 0000000..66c2fea
--- /dev/null
+++ b/Tests/FindPackageTest/FindUpperCasePackage.cmake
@@ -0,0 +1,6 @@
+set(UCP_FOO TRUE)
+
+include(FindPackageHandleStandardArgs)
+
+find_package_handle_standard_args(UpperCasePackage REQUIRED_VARS UCP_FOO
+ FOUND_VAR UPPERCASEPACKAGE_FOUND )