summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-10-29 08:42:48 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-10-29 08:42:48 (GMT)
commit22bb499c4b4d59bccf02ba8c5e5f3fe86510e0a8 (patch)
tree6479ec8325fb6a05bf614a051155c772c8897c26
parent6e04ed5e0b0e22a48d19cee342ed82671501b5e1 (diff)
downloadlibkolabxml-22bb499c4b4d59bccf02ba8c5e5f3fe86510e0a8.tar.gz
Fixed the major version comparison.
else is really just an else no matter what's in the brackets. the major version needs to match.
-rw-r--r--cmake/modules/LibkolabxmlConfigVersion.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/LibkolabxmlConfigVersion.cmake.in b/cmake/modules/LibkolabxmlConfigVersion.cmake.in
index 6859bc4..c311b70 100644
--- a/cmake/modules/LibkolabxmlConfigVersion.cmake.in
+++ b/cmake/modules/LibkolabxmlConfigVersion.cmake.in
@@ -7,7 +7,7 @@ set(PACKAGE_VERSION_MAJOR @Libkolabxml_VERSION_MAJOR@)
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
set(PACKAGE_VERSION_COMPATIBLE FALSE)
-else("${PACKAGE_FIND_VERSION}" VERSION_LESS ${PACKAGE_VERSION_MAJOR} )
+elseif(NOT "${PACKAGE_FIND_VERSION_MAJOR}" VERSION_EQUAL "${PACKAGE_VERSION_MAJOR}" )
#Major versions are incompatible and require an explicit switch
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )