diff options
author | Silvio Traversaro <silvio.traversaro@iit.it> | 2016-08-20 12:06:55 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-24 09:40:25 -0400 |
commit | 828d6c137d703ea095008fc6da794904a15c4ebd (patch) | |
tree | b4c0a6d0ef048e1d13de28637df1d74bd0784d08 /Tests/FindPackageTest/Baz 2.1/lib/Baz 2 | |
parent | ff5c89de0c23c0568afcbabd63974388ca045aa3 (diff) | |
download | cmake-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.cmake | 1 | ||||
-rw-r--r-- | Tests/FindPackageTest/Baz 2.1/lib/Baz 2/cmake/BazConfigVersion.cmake | 7 |
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() |