File 0001-Fix-building-with-cmake-3.27.patch of Package mingw32-umbrello

From 7a5202ed7c7173dfad9815e4826094df2e03cb54 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 31 Aug 2023 23:49:10 +0200
Subject: [PATCH] Fix building with cmake 3.27

---
 lib/kdev4-php/parser/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/kdev4-php/parser/CMakeLists.txt b/lib/kdev4-php/parser/CMakeLists.txt
index ebb2c3528..3806c935f 100644
--- a/lib/kdev4-php/parser/CMakeLists.txt
+++ b/lib/kdev4-php/parser/CMakeLists.txt
@@ -35,6 +35,11 @@ target_link_libraries(php-parser
     ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
     kdev4phpparser
 )
+# fix finding phpparser.h
+target_include_directories(kdev4phpparser INTERFACE
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
+)
 
 if(NOT NO_INSTALL)
     install(TARGETS kdev4phpparser DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
-- 
2.35.3

openSUSE Build Service is sponsored by