diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-02-26 20:30:18 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-02-26 21:21:03 (GMT) |
commit | 0bba365ff5423fc51d574d17b7934e3a0148ac2e (patch) | |
tree | 34258bc38cdf5bf6e805f735e445f7318af5b848 /Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake | |
parent | 6e6fbb0e436889c93bb64930fda51a1ef32326ae (diff) | |
download | CMake-0bba365ff5423fc51d574d17b7934e3a0148ac2e.zip CMake-0bba365ff5423fc51d574d17b7934e3a0148ac2e.tar.gz CMake-0bba365ff5423fc51d574d17b7934e3a0148ac2e.tar.bz2 |
Add test for find_dependency macro.
Diffstat (limited to 'Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake')
-rw-r--r-- | Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake b/Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake new file mode 100644 index 0000000..dfb7b6c --- /dev/null +++ b/Tests/Module/FindDependency/packages/Pack1/Pack1ConfigVersion.cmake @@ -0,0 +1,11 @@ + +set(PACKAGE_VERSION "1.3") + +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() |