# Failed to configure preset with Clang/LLVM compilers when using CMake Tools.

**URL:** https://discourse.cmake.org/t/failed-to-configure-preset-with-clang-llvm-compilers-when-using-cmake-tools/6637
**Category:** Code
**Tags:** os:windows, comp:clang, gen:ninja
**Created:** [October 10, 2022, 3:04pm UTC](https://discourse.cmake.org/t/failed-to-configure-preset-with-clang-llvm-compilers-when-using-cmake-tools/6637 "2022-10-10T15:04:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![hwhsu1231](https://discourse.cmake.org/user_avatar/discourse.cmake.org/hwhsu1231/32/5358_2.png) [@hwhsu1231](https://discourse.cmake.org/u/hwhsu1231)
#### Post date: [October 10, 2022, 3:06pm UTC](https://discourse.cmake.org/t/failed-to-configure-preset-with-clang-llvm-compilers-when-using-cmake-tools/6637/2 "2022-10-10T15:06:35Z")

</div>

@brad.king

```auto
[cmake] The C compiler
[cmake] 
[cmake] "C:/Program Files/LLVM/bin/clang.exe"
[cmake] 
[cmake] is not able to compile a simple test program.

```

This error is similar with the one in this [topic](https://discourse.cmake.org/t/how-to-write-a-proper-configurepreset-using-mingw-compilers-with-mingw-makefiles-generator/6615), in which I used with MinGW compiler. However this time, I indeed append the `C:/Program Files/LLVM/bin` to the `PATH` env. And it only failed with CMake Tools.

What happened?

---

_[View the full topic](https://discourse.cmake.org/t/failed-to-configure-preset-with-clang-llvm-compilers-when-using-cmake-tools/6637)._
