From 29be44ec808001529c2f11f5eae68c9b416ca088 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 31 May 2017 15:15:47 +0200 Subject: [PATCH] OPAL/opt-pilot/build - add '-DENABLE_DKS=ON' to cmake args on Linux --- OPAL/opt-pilot/build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/OPAL/opt-pilot/build b/OPAL/opt-pilot/build index 855bfdb..eab6cb3 100755 --- a/OPAL/opt-pilot/build +++ b/OPAL/opt-pilot/build @@ -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'