diff options
author | Silvio Traversaro <silvio.traversaro@iit.it> | 2016-08-20 10:06:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-24 13:40:25 (GMT) |
commit | 828d6c137d703ea095008fc6da794904a15c4ebd (patch) | |
tree | b4c0a6d0ef048e1d13de28637df1d74bd0784d08 /Tests/FindPackageTest/Baz 2.0 | |
parent | ff5c89de0c23c0568afcbabd63974388ca045aa3 (diff) | |
download | CMake-828d6c137d703ea095008fc6da794904a15c4ebd.zip CMake-828d6c137d703ea095008fc6da794904a15c4ebd.tar.gz CMake-828d6c137d703ea095008fc6da794904a15c4ebd.tar.bz2 |
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.0')
-rw-r--r-- | Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfig.cmake | 1 | ||||
-rw-r--r-- | Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfigVersion.cmake | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfig.cmake b/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfig.cmake new file mode 100644 index 0000000..deffa57 --- /dev/null +++ b/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfig.cmake @@ -0,0 +1 @@ +# Test config file. diff --git a/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfigVersion.cmake b/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfigVersion.cmake new file mode 100644 index 0000000..5026fad --- /dev/null +++ b/Tests/FindPackageTest/Baz 2.0/share/Baz 2/BazConfigVersion.cmake @@ -0,0 +1,7 @@ +set(PACKAGE_VERSION 2.0) +if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 2) + set(PACKAGE_VERSION_COMPATIBLE 1) + if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 0) + set(PACKAGE_VERSION_EXACT 1) + endif() +endif() |