From c0dbdf26d8a0b6c734945734c45a6349082947dd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 03 2017 18:47:48 +0000 Subject: do not even try to build tests when we don't need them Signed-off-by: Igor Gnatenko --- diff --git a/flacon.spec b/flacon.spec index 9ae8654..45ab97e 100644 --- a/flacon.spec +++ b/flacon.spec @@ -66,7 +66,7 @@ tags both for all tracks at once or for each tag separately. mkdir -p %{_target_platform} pushd %{_target_platform} %cmake \ - -DBUILD_TESTS=Yes \ + -DBUILD_TESTS=%{?with_tests:Yes}%{!?with_tests:No} \ -DUSE_QT5=Yes \ .. popd