build 529 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

3 4
module use unstable

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

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