public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fast_float] f44: Simplify setting Boolean CMake options based on build conditionals
@ 2026-09-16 21:01 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-16 21:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/fast_float
Branch : f44
Commit : 3675f5125fa1a4414fda0b3b01b521d9ff03f9e2
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-12T08:21:16+01:00
Stats  : +2/-10 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/fast_float/c/3675f5125fa1a4414fda0b3b01b521d9ff03f9e2?branch=f44

Log:
Simplify setting Boolean CMake options based on build conditionals

---
diff --git a/fast_float.spec b/fast_float.spec
index 1c45bd2..3e24300 100644
--- a/fast_float.spec
+++ b/fast_float.spec
@@ -32,16 +32,8 @@ Source1:        %{stf_url}/archive/%{stf_commit}/supplemental_test_files-%{stf_c
 BuildSystem:    cmake
 BuildOption(conf): -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
 BuildOption(conf): -DSYSTEM_DOCTEST:BOOL=ON
-%if %{with ctest}
-BuildOption(conf): -DFASTFLOAT_TEST:BOOL=ON
-%else
-BuildOption(conf): -DFASTFLOAT_TEST:BOOL=OFF
-%endif
-%if %{with exhaustive}
-BuildOption(conf): -DFASTFLOAT_EXHAUSTIVE:BOOL=ON
-%else
-BuildOption(conf): -DFASTFLOAT_EXHAUSTIVE:BOOL=OFF
-%endif
+BuildOption(conf): -DFASTFLOAT_TEST:BOOL=%{with ctest}
+BuildOption(conf): -DFASTFLOAT_EXHAUSTIVE:BOOL=%{with exhaustive}
 
 BuildRequires:  gcc-c++
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-16 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 21:01 [rpms/fast_float] f44: 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