Skip to content

Commit

Permalink
Compile starlight against dpmjet (#5680)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6f9ac6a)
  • Loading branch information
mbroz84 authored and alcaliva committed Jan 7, 2025
1 parent ac7363b commit 4729d10
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions starlight.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package: STARlight
version: "20240617"
tag: 196adefb9b840587d374b675e288b2a98fb5df0e
version: "20241115"
tag: b845eb773cd5be1ed2286e236e575519d08fed4d
requires:
- DPMJET
- HepMC3
build_requires:
- CMake
Expand All @@ -10,17 +11,21 @@ build_requires:
source: https://github.com/STARlightsim/STARlight.git
---
#!/bin/bash -ex
export DPMJET_DIR=$DPMJET_ROOT
cmake $SOURCEDIR -DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} \
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
-DCMAKE_SKIP_RPATH=TRUE \
-DENABLE_HEPMC3=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DBUILD_SHARED_LIB=ON \
-DENABLE_DPMJET=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DBUILD_SHARED_LIB=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DHepMC3_DIR="$HEPMC3_ROOT"
-DHepMC3_DIR="$HEPMC3_ROOT" \
-DDPMJET_DIR="$DPMJET_ROOT"

cmake --build . -- ${JOBS:+-j$JOBS} install
cp libDpmJetLib.so $INSTALLROOT/lib
cp -r $SOURCEDIR/config $INSTALLROOT/.
cp -r $SOURCEDIR/include $INSTALLROOT/.

Expand Down

0 comments on commit 4729d10

Please sign in to comment.