Skip to content

Commit

Permalink
set VecGeom_GIT_DESCRIBE to avoid vecgeom searching for git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Dec 8, 2023
1 parent 0cb1cb9 commit 251079a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vecgeom.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Source: git+https://gitlab.cern.ch/VecGeom/VecGeom.git?obj=master/%{tag}&export=
BuildRequires: cmake gmake
%define keep_archives true
%define vecgeom_backend Scalar
%define git_describe %(echo %{realversion} | sed -e 's|^v||')
Patch0: vecgeom-fix-vector

%define build_flags %{?arch_build_flags} %{?lto_build_flags} %{?pgo_build_flags}
Expand All @@ -22,6 +23,7 @@ mkdir ../build
cd ../build

cmake ../%{n}-%{realversion} \
-DVecGeom_GIT_DESCRIBE="%{git_describe};;" \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_CXX_STANDARD:STRING="%{cms_cxx_standard}" \
-DCMAKE_AR=$(which gcc-ar) \
Expand Down

0 comments on commit 251079a

Please sign in to comment.