Files
MX_Pmodule/scripts/OPAL/opt-pilot/build
Achim Gsell bc9e63799e build-blocks:
- use modbuild in shebang
- refactore function calls
2015-09-21 16:42:39 +02:00

19 lines
497 B
Plaintext
Executable File

#!/usr/bin/env modbuild
module use unstable
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
pbuild::configure() {
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
"${MODULE_SRCDIR}"
}
pbuild::add_to_group 'OPAL'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
pbuild::set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'gsl' 'boost' 'OPAL'
pbuild::set_supported_compilers 'gcc/4.8'
pbuild::make_all