commit:     7f989409cf6d8916c7f521de8bba0ac03a86f92a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 30 18:05:31 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 30 18:10:12 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=7f989409

cmake.eclass: If inherited from ecm.eclass, set ECM_DISABLE_QMLPLUGINDUMP

Works with downstream patch added to kde-frameworks/extra-cmake-modules in
commit f5b2cf80ea9696a5efbc2064cd432670670af486

Bug: https://bugs.gentoo.org/640432
Bug: https://bugs.gentoo.org/683102
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index d9fb203ede..f04888f187 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -489,6 +489,10 @@ cmake_src_configure() {
                SET (BUILD_SHARED_LIBS ON CACHE BOOL "")
        _EOF_
 
+       if [[ -n ${_ECM_ECLASS} ]]; then
+               echo 'SET (ECM_DISABLE_QMLPLUGINDUMP ON CACHE BOOL "")' >> 
"${common_config}" || die
+       fi
+
        # See bug 689410
        if [[ "${ARCH}" == riscv ]]; then
                echo 'SET (CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX 
'"${libdir#lib}"' CACHE STRING "library search suffix" FORCE)' >> 
"${common_config}" || die

Reply via email to