fftw-api should be used for amdfftw and mkl (#35477)

fftw-api should be used instead of fftw because amdfftw and mkl can be linked.
This commit is contained in:
nkgh77 2023-02-14 20:15:38 +01:00 committed by GitHub
parent 38512d18e9
commit 7aeee3339c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ class Octave(AutotoolsPackage, GNUMirrorPackage):
# Optional dependencies
depends_on("arpack-ng", when="+arpack")
depends_on("curl", when="+curl")
depends_on("fftw", when="+fftw")
depends_on("fftw-api@3", when="+fftw")
depends_on("fltk", when="+fltk")
depends_on("fontconfig", when="+fontconfig")
depends_on("freetype", when="+freetype")
@ -222,12 +222,13 @@ def configure_args(self):
config_args.append("--without-curl")
if "+fftw" in spec:
fftw_string = "fftw-api"
config_args.extend(
[
"--with-fftw3-includedir=%s" % spec["fftw"].prefix.include,
"--with-fftw3-libdir=%s" % spec["fftw"].prefix.lib,
"--with-fftw3f-includedir=%s" % spec["fftw"].prefix.include,
"--with-fftw3f-libdir=%s" % spec["fftw"].prefix.lib,
"--with-fftw3-includedir=%s" % spec[fftw_string].prefix.include,
"--with-fftw3-libdir=%s" % spec[fftw_string].prefix.lib,
"--with-fftw3f-includedir=%s" % spec[fftw_string].prefix.include,
"--with-fftw3f-libdir=%s" % spec[fftw_string].prefix.lib,
]
)
else: