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:
parent
38512d18e9
commit
7aeee3339c
1 changed files with 6 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue