Add universal build_type variant to CMakePackage (#4797)

* Add universal build_type variant to CMakePackage
* Override build_type in some packages with different possible values
* Remove reference to no longer existent debug variant
* Update CBTF packages with new build_type variant
* Keep note on build size of LLVM
This commit is contained in:
Adam J. Stewart
2017-07-25 18:34:43 -05:00
committed by Todd Gamblin
parent 4b996e9f49
commit 07aec4366f
46 changed files with 68 additions and 319 deletions

View File

@@ -41,7 +41,6 @@ class Geant4(CMakePackage):
version('10.01.p03', '4fb4175cc0dabcd517443fbdccd97439')
variant('qt', default=True, description='Enable Qt support')
variant('debug', default=False, description='Build debug version')
depends_on('cmake@3.5:', type='build')
@@ -54,13 +53,6 @@ class Geant4(CMakePackage):
depends_on("xerces-c")
depends_on("qt@4.8:", when="+qt")
def build_type(self):
spec = self.spec
if '+debug' in spec:
return 'Debug'
else:
return 'Release'
def cmake_args(self):
spec = self.spec