1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Fix build with cmake < 3.7

`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
This commit is contained in:
Wolfgang Bauer 2019-08-07 18:08:57 +02:00
parent 50c1fcce37
commit 68aee5ed51

View 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})