File 0001-Fix-issue-using-cross-compiled-kde4-config-for-detec.patch of Package mingw32-kdelibs4

From c5e6255ea9ffde90f1a96a00c0fe16a2f7471882 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 23 Jul 2015 12:50:14 +0200
Subject: [PATCH] Fix issue using cross compiled kde4-config for detecting data
 install.

---
 cmake/modules/FindKDE4Internal.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmake/modules/FindKDE4Internal.cmake b/cmake/modules/FindKDE4Internal.cmake
index 79e322d..88a719b 100644
--- a/cmake/modules/FindKDE4Internal.cmake
+++ b/cmake/modules/FindKDE4Internal.cmake
@@ -626,7 +626,11 @@ else (_kdeBootStrapping)
    endif()
 
    # allow searching cmake modules in all given kde install locations (KDEDIRS based)
-   execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path data OUTPUT_VARIABLE _data_DIR ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
+   if(WIN32)
+     set(_data_DIR ${KDE4_INSTALL_DIR}/share/apps)
+   else()
+     execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path data OUTPUT_VARIABLE _data_DIR ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
+   endif()
    file(TO_CMAKE_PATH "${_data_DIR}" _data_DIR)
    foreach(dir ${_data_DIR})
       set (apath "${dir}/cmake/modules")
-- 
1.8.4.5

openSUSE Build Service is sponsored by