diff options
author | Brad King <brad.king@kitware.com> | 2009-09-01 18:05:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-01 18:05:42 (GMT) |
commit | 07f029d6ef9fd4a3cbbf781b14ef94fc11bb2e50 (patch) | |
tree | 72211f91a2dbed29242451ee8a4fd64b932e3d6b /Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in | |
parent | 16ce84b06712a8f859a352804013805f8f8435c4 (diff) | |
download | CMake-07f029d6ef9fd4a3cbbf781b14ef94fc11bb2e50.zip CMake-07f029d6ef9fd4a3cbbf781b14ef94fc11bb2e50.tar.gz CMake-07f029d6ef9fd4a3cbbf781b14ef94fc11bb2e50.tar.bz2 |
Test the user package registry
We teach the FindPackageTest to build a sample project that stores its
build tree in the user package registry using export(PACKAGE), and then
find it with find_package.
Diffstat (limited to 'Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in')
-rw-r--r-- | Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in b/Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in new file mode 100644 index 0000000..ff450a1 --- /dev/null +++ b/Tests/FindPackageTest/Exporter/CMakeTestExportPackageConfigVersion.cmake.in @@ -0,0 +1,6 @@ +# Test config file. +SET(PACKAGE_VERSION "1.@CMAKE_VERSION@") +IF("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}") + SET(PACKAGE_VERSION_COMPATIBLE 1) + SET(PACKAGE_VERSION_EXACT 1) +ENDIF() |