gromacs: fix version branch in intel fftw (#40489)

This commit is contained in:
Harmen Stoppels 2023-10-27 08:29:02 +02:00 committed by GitHub
parent feda52f800
commit 37f48aff8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -618,7 +618,7 @@ def cmake_args(self):
# fftw-api@3 is provided by intel-mkl or intel-parllel-studio
# we use the mkl interface of gromacs
options.append("-DGMX_FFT_LIBRARY=mkl")
if not self.spec["mkl"].satisfies("@2023:"):
if self.spec.satisfies("@:2022"):
options.append(
"-DMKL_INCLUDE_DIR={0}".format(self.spec["mkl"].headers.directories[0])
)