File 0001-Revert-Fix-build-errors-if-PREFIX-is-different-from-ECMs-prefix.patch of Package plasma-framework
From ac9562606c94b23c207dee882f553d79c239766f Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Mon, 1 Feb 2021 12:02:02 +0100
Subject: [PATCH] Revert "Fix build errors if PREFIX is different from ECM's
PREFIX."
This change breaks the build for applications that have no dependency
on ECM (eg: ikona).
A similar change was also reverted in kpackage for the same reason.
This reverts commit ff5ed26f21d304e867ab57781878069567deb23d.
---
KF5PlasmaMacros.cmake | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/KF5PlasmaMacros.cmake b/KF5PlasmaMacros.cmake
index 80b3fd8dd..494b42d56 100644
--- a/KF5PlasmaMacros.cmake
+++ b/KF5PlasmaMacros.cmake
@@ -1,5 +1,6 @@
-include(KDEInstallDirs)
+find_package(ECM 1.6.0 CONFIG REQUIRED)
+include(${ECM_KDE_MODULE_DIR}/KDEInstallDirs.cmake)
set(PLASMA_RELATIVE_DATA_INSTALL_DIR "plasma")
set(PLASMA_DATA_INSTALL_DIR "${KDE_INSTALL_DATADIR}/${PLASMA_RELATIVE_DATA_INSTALL_DIR}")
--
GitLab