Updated configure flags in newer versions of ipopt (#29445)
This commit is contained in:
parent
6d0b59b7ea
commit
3c1f87099b
@ -77,7 +77,7 @@ def configure_args(self):
|
|||||||
"coin_skip_warn_cxxflags=yes",
|
"coin_skip_warn_cxxflags=yes",
|
||||||
]
|
]
|
||||||
|
|
||||||
if spec.satisfies('@:3.12.10'):
|
if spec.satisfies('@:3.12.13'):
|
||||||
args.extend([
|
args.extend([
|
||||||
"--with-lapack-lib={0}".format(lapack_lib),
|
"--with-lapack-lib={0}".format(lapack_lib),
|
||||||
"--with-lapack-incdir={0}".format(lapack_dir.include),
|
"--with-lapack-incdir={0}".format(lapack_dir.include),
|
||||||
@ -90,21 +90,32 @@ def configure_args(self):
|
|||||||
])
|
])
|
||||||
|
|
||||||
if '+mumps' in spec:
|
if '+mumps' in spec:
|
||||||
# Add directory with fake MPI headers in sequential MUMPS
|
|
||||||
# install to header search path
|
|
||||||
mumps_dir = spec['mumps'].prefix
|
mumps_dir = spec['mumps'].prefix
|
||||||
mumps_flags = "-ldmumps -lmumps_common -lpord -lmpiseq"
|
mumps_flags = "-ldmumps -lmumps_common -lpord -lmpiseq"
|
||||||
mumps_libcmd = "-L%s " % mumps_dir.lib + mumps_flags
|
mumps_libcmd = "-L%s " % mumps_dir.lib + mumps_flags
|
||||||
|
if spec.satisfies('@:3.12.13'):
|
||||||
args.extend([
|
args.extend([
|
||||||
"--with-mumps-incdir=%s" % mumps_dir.include,
|
"--with-mumps-incdir=%s" % mumps_dir.include,
|
||||||
"--with-mumps-lib=%s" % mumps_libcmd])
|
"--with-mumps-lib=%s" % mumps_libcmd])
|
||||||
|
else:
|
||||||
|
args.extend([
|
||||||
|
"--with-mumps",
|
||||||
|
"--with-mumps-lflags=%s" % mumps_libcmd,
|
||||||
|
"--with-mumps-cflags=%s" % mumps_dir.include])
|
||||||
|
|
||||||
if 'coinhsl' in spec:
|
if 'coinhsl' in spec:
|
||||||
|
if spec.satisfies('@:3.12.13'):
|
||||||
args.extend([
|
args.extend([
|
||||||
'--with-hsl-lib=%s' % spec['coinhsl'].libs.ld_flags,
|
'--with-hsl-lib=%s' % spec['coinhsl'].libs.ld_flags,
|
||||||
'--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
|
'--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
|
||||||
|
else:
|
||||||
|
args.extend([
|
||||||
|
"--with-hsl",
|
||||||
|
"--with-hsl-lflags=%s" % spec['coinhsl'].libs.ld_flags,
|
||||||
|
"--with-hsl-cflags=%s" % spec['coinhsl'].prefix.include])
|
||||||
|
|
||||||
if 'metis' in spec:
|
if 'metis' in spec:
|
||||||
|
if spec.satisfies('@:3.12.13'):
|
||||||
args.extend([
|
args.extend([
|
||||||
'--with-metis-lib=%s' % spec['metis'].libs.ld_flags,
|
'--with-metis-lib=%s' % spec['metis'].libs.ld_flags,
|
||||||
'--with-metis-incdir=%s' % spec['metis'].prefix.include])
|
'--with-metis-incdir=%s' % spec['metis'].prefix.include])
|
||||||
|
Loading…
Reference in New Issue
Block a user