Pass blas flags to hsl lflags when ^coinhsl+blas (#30309)

This commit is contained in:
Asher Mancinelli 2022-04-29 12:46:43 -06:00 committed by GitHub
parent ed7812b8be
commit 6df71118fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,14 +109,19 @@ def configure_args(self):
"--with-mumps-cflags=%s" % mumps_dir.include])
if 'coinhsl' in spec:
hsl_ld_flags = '-ldl {0}'.format(spec['coinhsl'].libs.ld_flags)
if spec.satisfies('^coinhsl+blas'):
hsl_ld_flags += ' {0}'.format(spec['blas'].libs.ld_flags)
if spec.satisfies('@:3.12.13'):
args.extend([
'--with-hsl-lib=%s' % spec['coinhsl'].libs.ld_flags,
'--with-hsl-lib=%s' % hsl_ld_flags,
'--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
else:
args.extend([
"--with-hsl",
"--with-hsl-lflags=%s" % spec['coinhsl'].libs.ld_flags,
"--with-hsl-lflags=%s" % hsl_ld_flags,
"--with-hsl-cflags=%s" % spec['coinhsl'].prefix.include])
if 'metis' in spec: