commit 621b1411f78f4e2f966d7569fb39ed3912d16269
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 16 13:06:11 2020 +0100
Improve compatibility with new CMake macro
mixxx.spec | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/mixxx.spec b/mixxx.spec
index a8b51fa..d38741d 100644
--- a/mixxx.spec
+++ b/mixxx.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
# Optional: Package version suffix for pre-releases, e.g. "beta" or
"rc"
%global extraver beta
@@ -93,8 +95,6 @@ echo "#pragma once" > src/build.h
%build
-mkdir -p cmake_build
-pushd cmake_build
%cmake3 \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
@@ -112,14 +112,12 @@ pushd cmake_build
-DOPUS=ON \
-DQTKEYCHAIN=ON \
-DVINYLCONTROL=ON \
- -DWAVPACK=ON \
- ..
+ -DWAVPACK=ON
-%ninja_build
-popd
+%cmake3_build
%install
-%ninja_install -C cmake_build
+%cmake3_install
# USB HID permissions
Show replies by date