build 532 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2 3 4 5 6 7

P='OPAL'

module use unstable

# add -fopenmp to CC and CXX, if you want to compile with OpenMP
gsell's avatar
gsell committed
8
pbuild::configure() {
gsell's avatar
gsell committed
9 10 11 12 13 14 15
	cmake \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
		-DCMAKE_BUILD_TYPE=RELEASE \
		-DENABLE_SAAMG_SOLVER=TRUE \
		"${MODULE_SRCDIR}"
}

gsell's avatar
gsell committed
16 17 18 19 20
pbuild::add_to_group 'MPI'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
pbuild::set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'gsl'
pbuild::set_supported_compilers 'gcc/4.7' 'gcc/4.8'
pbuild::make_all
gsell's avatar
gsell committed
21