17 lines
382 B
Plaintext
Executable File
17 lines
382 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
pbuild::configure() {
|
|
CC=$MPICC CXX=$MPICXX cmake \
|
|
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
|
"${SRC_DIR}"
|
|
}
|
|
|
|
pbuild::add_to_group 'MPI'
|
|
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
|
|
pbuild::set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
|
|
pbuild::install_docfiles 'license.txt' 'README.txt'
|
|
pbuild::make_all
|
|
|
|
|