summaryrefslogtreecommitdiff
path: root/Tests/FindPackageTest/Baz 2.1/lib/Baz 2
diff options
context:
space:
mode:
authorSilvio Traversaro <silvio.traversaro@iit.it>2016-08-20 12:06:55 +0200
committerBrad King <brad.king@kitware.com>2016-08-24 09:40:25 -0400
commit828d6c137d703ea095008fc6da794904a15c4ebd (patch)
treeb4c0a6d0ef048e1d13de28637df1d74bd0784d08 /Tests/FindPackageTest/Baz 2.1/lib/Baz 2
parentff5c89de0c23c0568afcbabd63974388ca045aa3 (diff)
downloadcmake-828d6c137d703ea095008fc6da794904a15c4ebd.tar.gz
find_package: Extend search path for combined Windows/UNIX convention
Find packages that install their cmake package configuration files in `lib/cmake/<name>` when they are installed in the default Windows CMAKE_INSTALL_PREFIX, `C:/Program Files/<name>`. Closes: #16212
Diffstat (limited to 'Tests/FindPackageTest/Baz 2.1/lib/Baz 2')
-rw-r--r--Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfig.cmake1
-rw-r--r--Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfigVersion.cmake7
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfig.cmake b/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfig.cmake
new file mode 100644
index 0000000000..deffa57294
--- /dev/null
+++ b/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfig.cmake
@@ -0,0 +1 @@
+# Test config file.
diff --git a/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfigVersion.cmake b/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfigVersion.cmake
new file mode 100644
index 0000000000..a180143889
--- /dev/null
+++ b/Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfigVersion.cmake
@@ -0,0 +1,7 @@
+set(PACKAGE_VERSION 2.1)
+if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 2)
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+endif()