How build C/C++ program with Clang compiler in windows 10


I have CLion 2017.2 and I recently installed Clang through :-  LLVVM 5.0 and  added environment variables through LLVM installer.

Previously Clion Configured to GCC 7.2 , and I set clang compiler path as following image:

and after that I got this CMake fatal error :

how to resolve this and compile C++ project with clang compiler and build the project along with CMake?


Hi! Please take a look at this comment in the similar topic.