I currently have cmake, clang and ninja installed on windows. I am trying to use CMake to generate a ninja build file to compile a very simple hello world program.
M
Don't know if it can be helpful but I had the same error. Now I can compile with clang(3.7.1)/ninja(1.6)/cmake(3.4.1) on Windows performing the following actions in a build directory:
"\VC\vcvarsall.bat" x86
)clang-cl
(instead of clang
and clang++
)cmake -G Ninja
cmake --build .