Skip to content

Commit

Permalink
Treat warnings as errors in O2Physics CI (#3592)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrosseo committed Nov 24, 2021
1 parent eb92109 commit bbe94a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions o2physics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ build_requires:
- alibuild-recipe-tools
source: https://github.com/AliceO2Group/O2Physics
incremental_recipe: |
[[ $ALIBUILD_O2_TESTS ]] && CXXFLAGS="${CXXFLAGS} -Werror -Wno-error=deprecated-declarations"
cmake --build . -- ${JOBS:+-j$JOBS} install
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
---
#!/bin/sh

if [[ $ALIBUILD_O2_TESTS ]]; then
# Impose extra errors.
CXXFLAGS="${CXXFLAGS} -Werror -Wno-error=deprecated-declarations"
fi

cmake "$SOURCEDIR" "-DCMAKE_INSTALL_PREFIX=$INSTALLROOT" \
-G Ninja \
${CMAKE_BUILD_TYPE:+"-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE"} \
Expand Down

0 comments on commit bbe94a0

Please sign in to comment.