public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flatbuffers] rawhide: Simplify setting Boolean CMake options based on build conditionals
@ 2026-09-12 8:14 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-12 8:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/flatbuffers
Branch : rawhide
Commit : 85377e7d54e165470c9ef4373bd9d90376b6140e
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-12T09:14:15+01:00
Stats : +2/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/flatbuffers/c/85377e7d54e165470c9ef4373bd9d90376b6140e?branch=rawhide
Log:
Simplify setting Boolean CMake options based on build conditionals
---
diff --git a/flatbuffers.spec b/flatbuffers.spec
index 6f54864..ae134b6 100644
--- a/flatbuffers.spec
+++ b/flatbuffers.spec
@@ -208,14 +208,11 @@ sed --regexp-extended --in-place=.upstream \
export VERSION='%{version}'
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-%if %{with cpp_tests}
- -DFLATBUFFERS_BUILD_TESTS:BOOL=ON \
-%if %{with cpp_grpc_test}
+ -DFLATBUFFERS_BUILD_TESTS:BOOL=%{with cpp_tests} \
+%if %{with cpp_tests} && %{with cpp_grpc_test}
-DFLATBUFFERS_BUILD_GRPCTEST:BOOL=ON \
-DGRPC_INSTALL_PATH:PATH=%{_prefix} \
-%endif
%else
- -DFLATBUFFERS_BUILD_TESTS:BOOL=OFF \
-DFLATBUFFERS_BUILD_GRPCTEST:BOOL=OFF \
%endif
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 8:14 [rpms/flatbuffers] 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