def METHOD_NAME(cts_dir: str, build_dir: str, sycl_impl: str, cmake_args: str):
    cmake_call = f"cmake -S {cts_dir} -B {build_dir} -G Ninja"
    cmake_call += f" -DSYCL_IMPLEMENTATION={sycl_impl} {cmake_args or ''}"
    log(cmake_call, LogLevel.VERBOSE)
    p = subprocess.run(cmake_call, shell=True, capture_output=True)
    if p.returncode != 0:
        log("CMake configuration failed with output:", LogLevel.ERROR)
        log(p.stderr.decode(), LogLevel.ERROR)
        exit(1)