tweaks to packages using CMakePackage (#2241)

* fix to trilinos package

* fix to dealii package

* fix to everytrace package

* fix to everytrace-example package

* changes suggested by @davydden
This commit is contained in:
Jeffrey Salmond
2016-11-04 17:57:53 +00:00
committed by Todd Gamblin
parent 29f81b7775
commit a135a1245a
4 changed files with 5 additions and 12 deletions

View File

@@ -117,19 +117,16 @@ class Dealii(CMakePackage):
depends_on("numdiff", when='@develop')
depends_on("astyle@2.04", when='@develop')
def build_type(self):
# CMAKE_BUILD_TYPE should be DebugRelease | Debug | Release
return 'DebugRelease'
def cmake_args(self):
spec = self.spec
options = []
options.extend(std_cmake_args)
# CMAKE_BUILD_TYPE should be DebugRelease | Debug | Release
for word in options[:]:
if word.startswith('-DCMAKE_BUILD_TYPE'):
options.remove(word)
lapack_blas = spec['lapack'].lapack_libs + spec['blas'].blas_libs
options.extend([
'-DCMAKE_BUILD_TYPE=DebugRelease',
'-DDEAL_II_COMPONENT_EXAMPLES=ON',
'-DDEAL_II_WITH_THREADS:BOOL=ON',
'-DBOOST_DIR=%s' % spec['boost'].prefix,