From 8914a8c72d3ac3feb5dcf2d5be57906616d58036 Mon Sep 17 00:00:00 2001
From: Igor Raits <ignatenkobrain@fedoraproject.org>
Date: Sat, 18 Jul 2020 10:54:07 +0200
Subject: [PATCH] Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
---
 kf5-syntax-highlighting.spec | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/kf5-syntax-highlighting.spec b/kf5-syntax-highlighting.spec
index e22a3f8..e6f74be 100644
--- a/kf5-syntax-highlighting.spec
+++ b/kf5-syntax-highlighting.spec
@@ -1,3 +1,4 @@
+%undefine __cmake_in_source_build
 %global framework syntax-highlighting
 
 # uncomment to enable bootstrap mode
@@ -54,17 +55,13 @@ developing applications that use %{name}.
 
 
 %build
-mkdir %{_target_platform}
-pushd %{_target_platform}
-%{cmake_kf5} .. \
+%{cmake_kf5} \
   -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
-popd
-
-%make_build -C %{_target_platform}
+%cmake_build
 
 
 %install
-make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+%cmake_install
 
 %find_lang_kf5 syntaxhighlighting5_qt