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:

committed by
Todd Gamblin

parent
4b996e9f49
commit
07aec4366f
@@ -36,19 +36,10 @@ class Sas(CMakePackage):
|
||||
version('0.1.4', '20d7311258f2a59c9367ae1576c392b6')
|
||||
version('0.1.3', '1e6572afcc03318d16d7321d40eec0fd')
|
||||
|
||||
variant('debug', default=False, description='Build debug version')
|
||||
|
||||
depends_on('python@2.7:')
|
||||
depends_on('llvm@3.5:')
|
||||
depends_on('cmake@2.8:', type='build')
|
||||
|
||||
def build_type(self):
|
||||
spec = self.spec
|
||||
if '+debug' in spec:
|
||||
return 'Debug'
|
||||
else:
|
||||
return 'Release'
|
||||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
'-DLLVM_DEV_DIR=%s' % self.spec['llvm'].prefix
|
||||
|
Reference in New Issue
Block a user