OPAL/opt-pilot/build

- add '-DENABLE_DKS=ON' to cmake args on Linux
This commit is contained in:
2017-05-31 15:15:47 +02:00
parent 3461788dcb
commit 29be44ec80

View File

@@ -1,13 +1,17 @@
#!/usr/bin/env modbuild
module use unstable
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
pbuild::configure() {
local configure_args=()
case "${OS}" in
Linux )
configure_args+=( "-DENABLE_DKS=ON" )
;;
esac
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
"${MODULE_SRCDIR}"
"${configure_args[@]}" \
"${MODULE_SRCDIR}" || std::die 1 "cmake failed"
}
pbuild::add_to_group 'OPAL'