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

A new commit has been pushed.

Repo   : rpms/libdivide
Branch : rawhide
Commit : c66c18a89065af3ca54f675b0ddf81d90b83bdc1
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-12T11:05:37+01:00
Stats  : +1/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libdivide/c/c66c18a89065af3ca54f675b0ddf81d90b83bdc1?branch=rawhide

Log:
Simplify setting Boolean CMake options based on build conditionals

---
diff --git a/libdivide.spec b/libdivide.spec
index c843713..eb25f8f 100644
--- a/libdivide.spec
+++ b/libdivide.spec
@@ -12,11 +12,7 @@ VCS:            git:%{forgeurl}.git
 Source:         %{forgeurl}/archive/v%{version}/libdivide-%{version}.tar.gz
 
 BuildSystem:    cmake
-%if %{with ctest}
-BuildOption(conf): -DLIBDIVIDE_BUILD_TESTS:BOOL=ON
-%else
-BuildOption(conf): -DLIBDIVIDE_BUILD_TESTS:BOOL=OFF
-%endif
+BuildOption(conf): -DLIBDIVIDE_BUILD_TESTS:BOOL=%{with ctest}
 
 # There are no ELF objects in this package, so turn off debuginfo generation.
 %global debug_package %{nil}

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

only message in thread, other threads:[~2026-09-12 10:06 UTC | newest]

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