def METHOD_NAME(arguments):
    install_root = Path(arguments.install_prefix)
    base_cmake_args = [
        f'-DCMAKE_INSTALL_PREFIX={install_root.as_posix()}',
        f'-DCMAKE_BUILD_TYPE={arguments.build_type}',
        f'-DCMAKE_TOOLCHAIN_FILE={arguments.toolchain}'
    ]
    generator = 'Ninja' if sys.platform == 'win32' else 'Unix Makefiles'
    base_cmake_args.append(f'-G{generator}')
    if arguments.use_ccache:
        base_cmake_args.append('-DCMAKE_C_COMPILER_LAUNCHER=ccache')
        base_cmake_args.append('-DCMAKE_CXX_COMPILER_LAUNCHER=ccache')
    if arguments.cmake_param:
        base_cmake_args.extend(arguments.cmake_param)
    if arguments.llvm_source_dir:
        base_cmake_args.append(f'-DLLVM_MAIN_SRC_DIR={arguments.llvm_source_dir}')
    if arguments.verbose:
        base_cmake_args.append('-DCMAKE_VERBOSE_MAKEFILE=ON')
    return base_cmake_args