summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-08 14:35:45 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-08 14:35:45 (GMT)
commitfb427298b1d31734b86ebdca4e6be04d7ff570d1 (patch)
tree2cef6a43308437ec17bd5f534e4e7c5ed9638995
parentaf95f5f04b6eacb06973a3227faa7366e82bd657 (diff)
Note KF5 version where SERVICES_INSTALL_DIR, DATA_INSTALL_DIR are needed
-rw-r--r--src/plasma/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plasma/CMakeLists.txt b/src/plasma/CMakeLists.txt
index 913a7ed..707e933 100644
--- a/src/plasma/CMakeLists.txt
+++ b/src/plasma/CMakeLists.txt
@@ -8,9 +8,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
include(KDEInstallDirs)
# KDECMakeSettings expexts LIB_INSTALL_DIR set
set(LIB_INSTALL_DIR ${KDE_INSTALL_LIBDIR})
-# Plasma macros assume SERVICES_INSTALL_DIR, DATA_INSTALL_DIR
-set(SERVICES_INSTALL_DIR ${KDE_INSTALL_KSERVICES5DIR})
-set(DATA_INSTALL_DIR ${KDE_INSTALL_DATADIR})
include(KDECMakeSettings)
macro_optional_find_package(KF5 ${REQUIRED_KF5_VERSION} QUIET COMPONENTS Plasma)
@@ -18,6 +15,11 @@ macro_optional_find_package(KF5 ${REQUIRED_KF5_VERSION} QUIET COMPONENTS Plasma)
if (NOT KF5_FOUND)
return()
endif()
+if(${KF5_VERSION} VERSION_LESS "5.26.0")
+ # Plasma frameworks macros < 5.26 use old SERVICES_INSTALL_DIR, DATA_INSTALL_DIR
+ set(SERVICES_INSTALL_DIR ${KDE_INSTALL_KSERVICES5DIR})
+ set(DATA_INSTALL_DIR ${KDE_INSTALL_DATADIR})
+endif()
add_subdirectory(qmlplugin)