gromacs: enable linking with acfl FFT (#34494)

This commit is contained in:
Annop Wongwathanarat 2022-12-13 17:32:42 +00:00 committed by GitHub
parent 333da47dc7
commit 7a5bd8cac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,6 +506,11 @@ def cmake_args(self):
options.append(
"-DFFTWF_LIBRARY={0}".format(self.spec["armpl-gcc"].libs.joined(";"))
)
elif "^acfl" in self.spec:
options.append(
"-DFFTWF_INCLUDE_DIR={0}".format(self.spec["acfl"].headers.directories[0])
)
options.append("-DFFTWF_LIBRARY={0}".format(self.spec["acfl"].libs.joined(";")))
# Ensure that the GROMACS log files report how the code was patched
# during the build, so that any problems are easier to diagnose.