def METHOD_NAME(self):
    args = [self.define("BUILD_CLIENTS_TESTS", self.run_tests)]
    tgt = self.spec.variants["amdgpu_target"]
    if "auto" not in tgt:
        if "@:3.8.0" in self.spec:
            args.append(
                self.define(
                    "CMAKE_CXX_FLAGS", "--amdgpu-target={0}".format(",".join(tgt.value))
                )
            )
        else:
            args.append(self.define_from_variant("AMDGPU_TARGETS", "amdgpu_target"))
    # From version 3.9 and above we have AMDGPU_TARGETS_SRAM_ECC
    tgt_sram = self.spec.variants["amdgpu_target_sram_ecc"]
    if "auto" not in tgt_sram and self.spec.satisfies("@3.9.0:4.0.0"):
        args.append(
            self.define_from_variant("AMDGPU_TARGETS_SRAM_ECC", "amdgpu_target_sram_ecc")
        )
    # See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
    if self.spec.satisfies("^cmake@3.21.0:3.21.2"):
        args.append(self.define("__skip_rocmclang", "ON"))
    if self.spec.satisfies("@5.0.0:"):
        args.append(self.define("SQLITE_USE_SYSTEM_PACKAGE", "ON"))
    if self.spec.satisfies("@5.2.0:"):
        args.append(self.define("BUILD_FILE_REORG_BACKWARD_COMPATIBILITY", True))
    if self.spec.satisfies("@5.3.0:"):
        args.append("-DCMAKE_INSTALL_LIBDIR=lib")
    return args