diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-03-10 15:05:19 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-03-10 15:10:52 (GMT) |
commit | 5d1822391765f1466a07884810919c8549556e0a (patch) | |
tree | 6369ced384510ba66f9b24289e42b49979c2894d /Modules/CMakePackageConfigHelpers.cmake | |
parent | 1c69cd8febb41c45d4269d6fef24277a60ed3733 (diff) | |
download | CMake-5d1822391765f1466a07884810919c8549556e0a.zip CMake-5d1822391765f1466a07884810919c8549556e0a.tar.gz CMake-5d1822391765f1466a07884810919c8549556e0a.tar.bz2 |
write_basic_package_version_file: add ExactVersion mode
This mode is for packages which consider themselves only compatible if
exactly the same version is requested. The tweak version is ignored.
Alex
Diffstat (limited to 'Modules/CMakePackageConfigHelpers.cmake')
-rw-r--r-- | Modules/CMakePackageConfigHelpers.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake index 4b1eba4..98cd560 100644 --- a/Modules/CMakePackageConfigHelpers.cmake +++ b/Modules/CMakePackageConfigHelpers.cmake @@ -61,7 +61,7 @@ # For an example see below the documentation for WRITE_BASIC_PACKAGE_VERSION_FILE(). # # -# WRITE_BASIC_PACKAGE_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion) ) +# WRITE_BASIC_PACKAGE_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion|ExactVersion) ) # # Writes a file for use as <package>ConfigVersion.cmake file to <filename>. # See the documentation of FIND_PACKAGE() for details on this. @@ -76,6 +76,10 @@ # not be considered compatible if 1.0 is requested. # This mode should be used for packages which guarantee backward compatibility within the # same major version. +# If ExactVersion is used, then the package is only considered compatible if the requested +# version matches exactly its own version number (not considering the tweak version). +# For example, version 1.2.3 of a package is only considered compatible to requested version 1.2.3. +# This mode is for packages without compatibility guarantees. # If your project has more elaborated version matching rules, you will need to write your # own custom ConfigVersion.cmake file instead of using this macro. # |