summaryrefslogtreecommitdiff
path: root/cmake/modules/LibkolabxmlConfigVersion.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/LibkolabxmlConfigVersion.cmake.in')
-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}" )