Skip to content

Commit

Permalink
Populate CMAKE_PREFIX_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Feb 22, 2023
1 parent 66fda0f commit 392e50c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cepgen.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Source: https://github.com/cepgen/cepgen/archive/refs/tags/%{realversion}.tar.gz

BuildRequires: cmake ninja
Requires: gsl OpenBLAS hepmc hepmc3 lhapdf pythia6 root bz2lib
Requires: gsl OpenBLAS hepmc hepmc3 lhapdf pythia6 root bz2lib zlib xz

%prep
%setup -n %{n}-%{realversion}
Expand All @@ -24,7 +24,8 @@ export ROOTSYS=${ROOT_ROOT}
cmake ../%{n}-%{realversion} \
-G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH="%i" \
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${BZ2LIB_ROOT};${ZLIB_ROOT};${XZ_ROOT}"

ninja -v %{makeprocesses}

Expand Down

0 comments on commit 392e50c

Please sign in to comment.