ghost: fix finding cblas header and libs (at least for mkl and netlib-lapack, which provide headers())
This commit is contained in:
parent
d8cb62905e
commit
d406a77ed7
@ -64,11 +64,8 @@ class Ghost(CMakePackage):
|
|||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
cblas_include_dir = ''
|
# note: we require the cblas_include_dir property from the blas provider,
|
||||||
if '^mkl' not in spec:
|
# this is implemented at least for intel-mkl and netlib-lapack
|
||||||
cblas_include_dir = '-DCBLAS_INCLUDE_DIR=' + \
|
|
||||||
spec['blas'].prefix.include
|
|
||||||
|
|
||||||
args = ['-DGHOST_ENABLE_MPI:BOOL=%s'
|
args = ['-DGHOST_ENABLE_MPI:BOOL=%s'
|
||||||
% ('ON' if '+mpi' in spec else 'OFF'),
|
% ('ON' if '+mpi' in spec else 'OFF'),
|
||||||
'-DGHOST_USE_CUDA:BOOL=%s'
|
'-DGHOST_USE_CUDA:BOOL=%s'
|
||||||
@ -78,9 +75,12 @@ def cmake_args(self):
|
|||||||
'-DGHOST_USE_ZOLTAN:BOOL=%s'
|
'-DGHOST_USE_ZOLTAN:BOOL=%s'
|
||||||
% ('ON' if '+zoltan' in spec else 'OFF'),
|
% ('ON' if '+zoltan' in spec else 'OFF'),
|
||||||
'-DBUILD_SHARED_LIBS:BOOL=%s'
|
'-DBUILD_SHARED_LIBS:BOOL=%s'
|
||||||
% ('ON' if '+shared' in spec else 'OFF'), cblas_include_dir
|
% ('ON' if '+shared' in spec else 'OFF'),
|
||||||
|
'-DCBLAS_INCLUDE_DIR:STRING=%s'
|
||||||
|
% format(spec['blas:c'].headers.directories[0]),
|
||||||
|
'-DBLAS_LIBRARIES=%s'
|
||||||
|
% spec['blas:c'].libs.joined(';')
|
||||||
]
|
]
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user