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

gsell's avatar
gsell committed
3
pbuild::configure() {
4 5 6 7 8 9 10
	CC=$MPICC
	CXX=$MPICXX
	F77=$MPIF77
	F90=$MPIF90
	FC=$MPIFC
	FORTRAN=$MPIFORTRAN

gsell's avatar
gsell committed
11 12 13 14
	rm -f CMakeCache.txt
	cmake \
		-DCMAKE_BUILD_TYPE=RELEASE \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
15
		"${MODULE_SRCDIR}" \
gsell's avatar
gsell committed
16 17 18
		|| exit 1 
}

gsell's avatar
gsell committed
19 20 21 22 23
pbuild::add_to_group 'MPI'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
pbuild::set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
pbuild::set_docfiles LICENSE README
pbuild::make_all
gsell's avatar
gsell committed
24