public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/google-benchmark] rawhide: Simplify setting Boolean CMake options based on build conditionals
@ 2026-09-12 9:12 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-12 9:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/google-benchmark
Branch : rawhide
Commit : bd1278bc30f965a0044109ce29f6b8c0e5b4b758
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-12T10:11:15+01:00
Stats : +3/-12 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/google-benchmark/c/bd1278bc30f965a0044109ce29f6b8c0e5b4b758?branch=rawhide
Log:
Simplify setting Boolean CMake options based on build conditionals
---
diff --git a/google-benchmark.spec b/google-benchmark.spec
index ca22853..40e1cad 100644
--- a/google-benchmark.spec
+++ b/google-benchmark.spec
@@ -35,18 +35,9 @@ BuildOption(conf): -DBENCHMARK_ENABLE_INSTALL:BOOL=ON
BuildOption(conf): -DBENCHMARK_INSTALL_DOCS:BOOL=OFF
BuildOption(conf): -DBENCHMARK_INSTALL_TOOLS:BOOL=OFF
BuildOption(conf): -DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF
-%if %{with libfpm}
-BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=ON
-%else
-BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=OFF
-%endif
-%if %{with ctest}
-BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=ON
-BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=ON
-%else
-BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=OFF
-BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=OFF
-%endif
+BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=%{with libfpm}
+BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=%{with ctest}
+BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=%{with ctest}
%ifarch s390x
# [BUG] Multiple PerfCountersTest failures with counter.num_counters() zero on
# some s390x systems
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 9:12 [rpms/google-benchmark] rawhide: Simplify setting Boolean CMake options based on build conditionals Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox