public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cxxopts] epel10: Improve compatibility with new CMake macro
@ 2026-09-22 1:31 Igor Raits
0 siblings, 0 replies; only message in thread
From: Igor Raits @ 2026-09-22 1:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/cxxopts
Branch : epel10
Commit : bb5c78038b7a2ae4bdedb44958f54ef3bbbc11d7
Author : Igor Raits <ignatenkobrain@fedoraproject.org>
Date : 2020-07-20T17:53:53+02:00
Stats : +6/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/cxxopts/c/bb5c78038b7a2ae4bdedb44958f54ef3bbbc11d7?branch=epel10
Log:
Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
---
diff --git a/cxxopts.spec b/cxxopts.spec
index 0727ea8..c492fd2 100644
--- a/cxxopts.spec
+++ b/cxxopts.spec
@@ -1,3 +1,4 @@
+%undefine __cmake_in_source_build
%global debug_package %{nil}
Name: cxxopts
@@ -31,26 +32,21 @@ Requires: libstdc++-devel%{?_isa}
%prep
%autosetup -p1
-mkdir -p %{_target_platform}
%build
-pushd %{_target_platform}
- %cmake -G Ninja \
+%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCXXOPTS_ENABLE_INSTALL=ON \
-DCXXOPTS_BUILD_EXAMPLES=OFF \
-DCXXOPTS_BUILD_TESTS=ON \
- ..
-popd
-%ninja_build -C %{_target_platform}
+ %{nil}
+%cmake_build
%check
-pushd %{_target_platform}
- ctest --output-on-failure
-popd
+%ctest
%install
-%ninja_install -C %{_target_platform}
+%cmake_install
%files devel
%doc README.md
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-22 1:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 1:31 [rpms/cxxopts] epel10: Improve compatibility with new CMake macro Igor Raits
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox