From: Wolfgang Bauer Date: Wed, 7 Aug 2019 16:08:57 +0000 (+0200) Subject: Fix build with cmake < 3.7 X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/68aee5ed51b55a3938ab71de4fa42c469cbbaf26 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 302f9666a..838ca1445 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})