]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix build with cmake < 3.7
authorWolfgang Bauer <wbauer@tmo.at>
Wed, 7 Aug 2019 16:08:57 +0000 (18:08 +0200)
committerWolfgang Bauer <wbauer@tmo.at>
Wed, 7 Aug 2019 16:08:57 +0000 (18:08 +0200)
`VERSION_GREATER_EQUAL` was introduced in cmake 3.7, but the specified
minimum version is 3.0.
So use `NOT VERSION_LESS` instead to still support older cmake versions
too.

Differential Revision: https://phabricator.kde.org/D22984

CMakeLists.txt

index 302f9666a0d71121b764d561a058e21ce04ec95c..838ca1445cb015a2253eba668a735545be71b451 100644 (file)
@@ -150,7 +150,7 @@ configure_file(org.kde.dolphin.FileManager1.service.in
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.dolphin.FileManager1.service
         DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
 
-if (ECM_VERSION VERSION_GREATER_EQUAL "5.59.0")
+if (NOT ECM_VERSION VERSION_LESS "5.59.0")
     install(FILES dolphin.categories  DESTINATION  ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
 else()
     install(FILES dolphin.categories  DESTINATION ${KDE_INSTALL_CONFDIR})