summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/SetFoundFALSE.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-03-13 20:19:56 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-13 20:56:52 (GMT)
commit0cf84472d7bf7c62b4f7db5052765cb88ec29eef (patch)
treed993925cc33d5fe8122fecea94d22c7caad45d23 /Tests/RunCMake/find_package/SetFoundFALSE.cmake
parent56ae3f94129aebd03af6778895a322a86dc9db77 (diff)
downloadCMake-0cf84472d7bf7c62b4f7db5052765cb88ec29eef.zip
CMake-0cf84472d7bf7c62b4f7db5052765cb88ec29eef.tar.gz
CMake-0cf84472d7bf7c62b4f7db5052765cb88ec29eef.tar.bz2
find_package: additional test for checking the error message
This patch adds a test which checks the error message, which is produced in the case that a Config file has set Foo_FOUND to FALSE by itself. Alex
Diffstat (limited to 'Tests/RunCMake/find_package/SetFoundFALSE.cmake')
-rw-r--r--Tests/RunCMake/find_package/SetFoundFALSE.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/SetFoundFALSE.cmake b/Tests/RunCMake/find_package/SetFoundFALSE.cmake
new file mode 100644
index 0000000..fbcec3c
--- /dev/null
+++ b/Tests/RunCMake/find_package/SetFoundFALSE.cmake
@@ -0,0 +1,2 @@
+set(SetFoundFALSE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
+find_package(SetFoundFALSE CONFIG)