adiak: use f-strings (#40435)
This commit is contained in:
parent
dae746bb96
commit
275a2f35b5
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user