diff options
-rw-r--r-- | var/spack/repos/builtin/packages/raja/package.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/raja/package.py b/var/spack/repos/builtin/packages/raja/package.py index 9ccd80f11f..4eb7dcbd1e 100644 --- a/var/spack/repos/builtin/packages/raja/package.py +++ b/var/spack/repos/builtin/packages/raja/package.py @@ -36,10 +36,8 @@ class Raja(CMakePackage): spec = self.spec options = [] - - if '+openmp' in spec: - options.extend([ - '-DENABLE_OPENMP=On']) + options.append('-DENABLE_OPENMP={0}'.format( + 'On' if '+openmp' in spec else 'Off')) if '+cuda' in spec: options.extend([ |