gromacs: fix issue with ^gcc

This commit is contained in:
Massimiliano Culpo 2025-02-20 08:54:21 +01:00
parent 626c5c59c6
commit e37a7b6c91
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -738,7 +738,7 @@ def cmake_args(self):
):
with open(".".join([os.environ["SPACK_CXX"], "cfg"]), "r") as f:
options.append("-DCMAKE_CXX_FLAGS={}".format(f.read()))
elif self.spec.satisfies("^gcc"):
elif self.spec["cxx"].name == "gcc":
options.append("-DGMX_GPLUSPLUS_PATH=%s/g++" % self.spec["gcc"].prefix.bin)
if self.spec.satisfies("+double"):