build-blocks:
- use modbuild in shebang - refactore function calls
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
module use unstable
|
||||
|
||||
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
|
||||
pmodules.configure() {
|
||||
pbuild::configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
pmodules.add_to_group 'OPAL'
|
||||
pmodules.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
pmodules.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'gsl' 'boost' 'OPAL'
|
||||
pmodules.set_supported_compilers 'gcc/4.8'
|
||||
pmodules.make_all
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user