OPAL/opt-pilot/build
- add '-DENABLE_DKS=ON' to cmake args on Linux
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user