Files
MX_Pmodule/MPI/OPAL/build
Achim Gsell b319dbc899 OPAL/build
- fix SOURCE_URL
2018-04-18 14:11:32 +02:00

30 lines
551 B
Plaintext
Executable File

#!/usr/bin/env modbuild
SOURCE_URL='http://amas.web.psi.ch/Downloads/$P/$P-$V.tar.bz2'
config_args=()
case ${OS} in
Darwin )
:
;;
Linux )
config_args+=( '-DENABLE_DKS=ON' )
;;
esac
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
pbuild::configure() {
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SAAMG_SOLVER=TRUE \
"${config_args[@]}" \
"${MODULE_SRCDIR}"
}
pbuild::add_to_group 'MPI'
pbuild::set_supported_compilers 'gcc/4.7' 'gcc/4.8' 'gcc/4.9' 'gcc/5.4'
pbuild::make_all