summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-06 13:43:25 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-06 13:43:25 (GMT)
commit9a384e73044f4295a50c8923389b1de832cee36a (patch)
tree7e349e0cbfc504ae659e6407f46c3de0263fea0a /Tests
parent1c3404a301959690ca967b0c751c0df1f57a1ecd (diff)
parent8ed868606ddae005b4a50319bdc291b8df5b525a (diff)
downloadCMake-9a384e73044f4295a50c8923389b1de832cee36a.zip
CMake-9a384e73044f4295a50c8923389b1de832cee36a.tar.gz
CMake-9a384e73044f4295a50c8923389b1de832cee36a.tar.bz2
Merge branch 'find_package-prefer-config-not-found' into release-3.15
Merge-request: !3653
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindPackageTest/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt
index da79f5d..1b9c973 100644
--- a/Tests/FindPackageTest/CMakeLists.txt
+++ b/Tests/FindPackageTest/CMakeLists.txt
@@ -625,3 +625,9 @@ find_package(ACME NO_MODULE)
if(ACME_FOUND)
message(SEND_ERROR "Should not find ACME package")
endif()
+
+############################################################################
+##Test find_package CMAKE_FIND_PACKAGE_PREFER_CONFIG with unknown package
+
+set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
+find_package(DoesNotExist)