Skip to content
Snippets Groups Projects
Commit 0bea4f26 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* trying to fix travis build with ninja

parent e75594fd
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ before_install:
install:
script:
- cmake --version
- cd $NPTOOL/NPLib
- cmake -GNinja ./
- ninja-build install
......
......@@ -5,12 +5,18 @@ set -ev
# go to nps
cd $NPTOOL/NPSimulation
cmake ./
if [ -e Makefile ]
then
make install
else
# Check if ninja or ninja-build is there, otherwise fall back on make
if hash ninja-build 2>/dev/null; then
cmake -GNinja ./
ninja-build install
elif hash ninja 2>/dev/null; then
cmake -GNinja ./
ninja install
else
cmake ./
make install
fi
# minimal run
npsimulation -h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment