diff options
author | Brad King <brad.king@kitware.com> | 2008-12-17 14:24:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-12-17 14:24:05 (GMT) |
commit | 3958b3e112b7c33d40129a16811a2eff69495a42 (patch) | |
tree | 4d525f2142dfba37efedd6eca78fdcb34453d67d /Tests/FindPackageTest/Baz 1.2/CMake | |
parent | d5c1191349778dd1c1d4646b28f8f532ea0bea9e (diff) | |
download | CMake-3958b3e112b7c33d40129a16811a2eff69495a42.zip CMake-3958b3e112b7c33d40129a16811a2eff69495a42.tar.gz CMake-3958b3e112b7c33d40129a16811a2eff69495a42.tar.bz2 |
ENH: Teach find_package about more install dirs
We now search in
<prefix>/<name>*/
<prefix>/<name>*/(cmake|CMake)
when looking for package configuration files. This is useful on Windows
since the Program Files folder is in CMAKE_SYSTEM_PREFIX_PATH. These
paths are the Windows equivalent to the Apple convention application and
framework paths we already search. See issue #8264.
Diffstat (limited to 'Tests/FindPackageTest/Baz 1.2/CMake')
-rw-r--r-- | Tests/FindPackageTest/Baz 1.2/CMake/BazConfig.cmake | 1 | ||||
-rw-r--r-- | Tests/FindPackageTest/Baz 1.2/CMake/BazConfigVersion.cmake | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/Baz 1.2/CMake/BazConfig.cmake b/Tests/FindPackageTest/Baz 1.2/CMake/BazConfig.cmake new file mode 100644 index 0000000..deffa57 --- /dev/null +++ b/Tests/FindPackageTest/Baz 1.2/CMake/BazConfig.cmake @@ -0,0 +1 @@ +# Test config file. diff --git a/Tests/FindPackageTest/Baz 1.2/CMake/BazConfigVersion.cmake b/Tests/FindPackageTest/Baz 1.2/CMake/BazConfigVersion.cmake new file mode 100644 index 0000000..4576809 --- /dev/null +++ b/Tests/FindPackageTest/Baz 1.2/CMake/BazConfigVersion.cmake @@ -0,0 +1,8 @@ +SET(PACKAGE_VERSION 1.2) +IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 1) + SET(PACKAGE_VERSION_COMPATIBLE 1) + IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 2) + SET(PACKAGE_VERSION_EXACT 1) + ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 2) +ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 1) + |