Fixes the Elemental and LBANN packages to conform to the new syntax (#3382)
introduced by PR https://github.com/LLNL/spack/pull/1875
This commit is contained in:
parent
bacb60457d
commit
acf95c92a6
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ class Elemental(CMakePackage):
|
|||
depends_on('python@:2.8', when='+python')
|
||||
|
||||
@property
|
||||
def elemental_libs(self):
|
||||
def libs(self):
|
||||
shared = True if '+shared' in self.spec else False
|
||||
return find_libraries(
|
||||
'libEl', root=self.prefix, shared=shared, recurse=True
|
||||
|
|
|
@ -45,7 +45,7 @@ class Lbann(CMakePackage):
|
|||
depends_on('elemental +openmp_blas +scalapack +shared +int64 +debug', when='+debug')
|
||||
depends_on('cuda', when='+gpu')
|
||||
depends_on('mpi')
|
||||
depends_on('opencv@2.4.13', when='+opencv')
|
||||
depends_on('opencv@3.2.0', when='+opencv')
|
||||
depends_on('protobuf@3.0.2')
|
||||
|
||||
def build_type(self):
|
||||
|
@ -71,7 +71,7 @@ def cmake_args(self):
|
|||
'-DWITH_VTUNE=OFF',
|
||||
'-DElemental_DIR={0}'.format(self.spec['elemental'].prefix),
|
||||
'-DELEMENTAL_MATH_LIBS={0}'.format(
|
||||
self.spec['elemental'].elemental_libs),
|
||||
self.spec['elemental'].libs),
|
||||
'-DVERBOSE=0',
|
||||
'-DLBANN_HOME=.',
|
||||
'-DLBANN_VER=spack']
|
||||
|
|
Loading…
Reference in a new issue