From e829ef7849e0c6ea6518ac09aebe7e27003f809a Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 5 Jul 2020 21:08:30 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- wpebackend-fdo.spec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/wpebackend-fdo.spec b/wpebackend-fdo.spec index 767841d..fe2d2da 100644 --- a/wpebackend-fdo.spec +++ b/wpebackend-fdo.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + Name: wpebackend-fdo Version: 1.6.1 Release: 1%{?dist} @@ -30,16 +32,11 @@ files for developing applications that use %{name}. %autosetup -p1 -n %{name}-%{version} %build -mkdir -p %{_target_platform} -pushd %{_target_platform} -%cmake \ - .. -popd - -%make_build -C %{_target_platform} +%cmake +%cmake_build %install -%make_install -C %{_target_platform} +%cmake_install %files %license COPYING