Skip to content
Snippets Groups Projects
Commit 4e159b27 authored by Martin Mrovec's avatar Martin Mrovec
Browse files

Update build.sh

parent 048f0d11
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#------------#------------------------------------------------------------
# Parameters #
#------------#
# Fortran compiler
FORTRAN_COMPILER=gfortran
# Build type (Release/Debug)
BUILD_TYPE=Debug
# Turn of/off time profiling (1/0)
WITH_TIME_PROFILING=0
#-------------------------------------------------------------------------
echo "Creating folder 'build'...";
mkdir -p build/lib;
echo "Folder 'build' was created'";
cd build;
cmake ..;
make && echo "Installation complete." || exit -1;
cmake -DCMAKE_Fortran_COMPILER=${FORTRAN_COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DWITH_TIME_PROFILING:BOOLEAN=${WITH_TIME_PROFILING} ..
make VERBOSE=1 && echo "Build complete." || exit -1;
#make install;
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