summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-09 19:07:19 (GMT)
committerBrad King <brad.king@kitware.com>2008-12-09 19:07:19 (GMT)
commite51969ac4935999779be2cb8b74a06b218d73dd0 (patch)
tree6c77b95571928b1dad028ebd6a7f250d6658a105 /Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake
parent4f5a8b9c0c5d72837981880c5a795d69acd73dac (diff)
downloadCMake-e51969ac4935999779be2cb8b74a06b218d73dd0.zip
CMake-e51969ac4935999779be2cb8b74a06b218d73dd0.tar.gz
CMake-e51969ac4935999779be2cb8b74a06b218d73dd0.tar.bz2
ENH: Add useful search locations to find_package
This teaches find_package to search <prefix>/(share|lib)/cmake/<name>*/ for package configuration files. Packages that do not already have files in a <prefix>/lib/<name>* directory can use this location to avoid cluttering the lib directory.
Diffstat (limited to 'Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake')
-rw-r--r--Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake b/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake
new file mode 100644
index 0000000..b54d94c
--- /dev/null
+++ b/Tests/FindPackageTest/lib/cmake/zot-3.1/zot-config-version.cmake
@@ -0,0 +1,8 @@
+SET(PACKAGE_VERSION 3.1)
+IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
+ SET(PACKAGE_VERSION_COMPATIBLE 1)
+ IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
+ SET(PACKAGE_VERSION_EXACT 1)
+ ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
+ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
+