def METHOD_NAME(self):
    spec = self.spec
    args = [
        self.define_from_variant("SPFFT_OMP", "openmp"),
        self.define_from_variant("SPFFT_MPI", "mpi"),
        self.define_from_variant("SPFFT_SINGLE_PRECISION", "single_precision"),
        self.define_from_variant("SPFFT_GPU_DIRECT", "gpu_direct"),
        self.define_from_variant("SPFFT_FORTRAN", "fortran"),
        self.define_from_variant("SPFFT_STATIC", "static"),
    ]
    if spec.satisfies("+cuda"):
        args += ["-DSPFFT_GPU_BACKEND=CUDA"]
        cuda_arch = self.spec.variants["cuda_arch"].value
        if cuda_arch[0] != "none":
            args += [self.define("CMAKE_CUDA_ARCHITECTURES", cuda_arch)]
    if spec.satisfies("+rocm"):
        archs = ",".join(self.spec.variants["amdgpu_target"].value)
        args += [
            "-DSPFFT_GPU_BACKEND=ROCM",
            "-DHIP_ROOT_DIR={0}".format(spec["hip"].prefix),
            "-DHIP_HCC_FLAGS=--amdgpu-target={0}".format(archs),
            "-DHIP_CXX_COMPILER={0}".format(self.spec["hip"].hipcc),
        ]
    if "fftw" in spec:
        args += ["-DSPFFT_FFTW_LIB=FFTW"]
    elif "intel-mkl" in spec:
        args += ["-DSPFFT_FFTW_LIB=MKL"]
    return args