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

module use unstable

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

gsell's avatar
gsell committed
13 14 15 16 17
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
18