def METHOD_NAME(self):
    args = [
        self.define("BUILD_CLIENTS_SAMPLES", "OFF"),
        self.define("BUILD_CLIENTS_TESTS", self.run_tests),
    ]
    if self.spec.satisfies("@:3.9.0"):
        args.append(self.define_from_variant("TRY_CUDA", "cuda"))
    else:
        args.append(self.define_from_variant("USE_CUDA", "cuda"))
    # FindHIP.cmake was used for +rocm until 4.1.0 and is still used for +cuda
    if self.spec.satisfies("@:4.0") or self.spec.satisfies("+cuda"):
        if self.spec["hip"].satisfies("@:5.1"):
            args.append(self.define("CMAKE_MODULE_PATH", self.spec["hip"].prefix.cmake))
        else:
            args.append(
                self.define("CMAKE_MODULE_PATH", self.spec["hip"].prefix.lib.cmake.hip)
            )
    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