diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/mofem-users-modules/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/mofem-users-modules/package.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/mofem-users-modules/package.py b/var/spack/repos/builtin/packages/mofem-users-modules/package.py index 3373a60a88..b65299b50c 100644 --- a/var/spack/repos/builtin/packages/mofem-users-modules/package.py +++ b/var/spack/repos/builtin/packages/mofem-users-modules/package.py @@ -46,6 +46,7 @@ class MofemUsersModules(CMakePackage): def cmake_args(self): spec = self.spec + from_variant = self.define_from_variant options = [] @@ -53,12 +54,10 @@ class MofemUsersModules(CMakePackage): options.extend([ '-DMOFEM_DIR=%s' % spec['mofem-cephas'].prefix.users_module, '-DWITH_SPACK=YES', - '-DSTAND_ALLONE_USERS_MODULES=%s' % - ('YES' if '+copy_user_modules' in spec else 'NO')]) + from_variant('STAND_ALLONE_USERS_MODULES', 'copy_user_modules')]) # build tests - options.append('-DMOFEM_UM_BUILD_TESTS={0}'.format( - 'ON' if self.run_tests else 'OFF')) + options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests)) return options |