diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ibmisc/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ibmisc/package.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/ibmisc/package.py b/var/spack/repos/builtin/packages/ibmisc/package.py index de77372c14..7fe8019a57 100644 --- a/var/spack/repos/builtin/packages/ibmisc/package.py +++ b/var/spack/repos/builtin/packages/ibmisc/package.py @@ -50,12 +50,12 @@ class Ibmisc(CMakePackage): depends_on('doxygen', type='build') def cmake_args(self): - spec = self.spec return [ - '-DUSE_EVERYTRACE=%s' % ('YES' if '+everytrace' in spec else 'NO'), - '-DUSE_PROJ4=%s' % ('YES' if '+proj' in spec else 'NO'), - '-DUSE_BLITZ=%s' % ('YES' if '+blitz' in spec else 'NO'), - '-DUSE_NETCDF=%s' % ('YES' if '+netcdf' in spec else 'NO'), - '-DUSE_BOOST=%s' % ('YES' if '+boost' in spec else 'NO'), - '-DUSE_UDUNITS2=%s' % ('YES' if '+udunits2' in spec else 'NO'), - '-DUSE_GTEST=%s' % ('YES' if '+googletest' in spec else 'NO')] + self.define_from_variant('USE_EVERYTRACE', 'everytrace'), + self.define_from_variant('USE_PROJ4', 'proj'), + self.define_from_variant('USE_BLITZ', 'blitz'), + self.define_from_variant('USE_NETCDF', 'netcdf'), + self.define_from_variant('USE_BOOST', 'boost'), + self.define_from_variant('USE_UDUNITS2', 'udunits2'), + self.define_from_variant('USE_GTEST', 'googletest'), + ] |