adiak: use f-strings (#40435)

This commit is contained in:
Alec Scott 2023-10-11 10:48:39 -07:00 committed by GitHub
parent dae746bb96
commit 275a2f35b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,8 @@ class Adiak(CMakePackage):
def cmake_args(self): def cmake_args(self):
args = [] args = []
if self.spec.satisfies("+mpi"): if self.spec.satisfies("+mpi"):
args.append("-DMPI_CXX_COMPILER=%s" % self.spec["mpi"].mpicxx) args.append(f"-DMPI_CXX_COMPILER={self.spec['mpi'].mpicxx}")
args.append("-DMPI_C_COMPILER=%s" % self.spec["mpi"].mpicc) args.append(f"-DMPI_C_COMPILER={self.spec['mpi'].mpicc}")
args.append("-DENABLE_MPI=ON") args.append("-DENABLE_MPI=ON")
else: else:
args.append("-DENABLE_MPI=OFF") args.append("-DENABLE_MPI=OFF")