> ------ check which cl.exe is used: > $which cl > D:\CL\cl.EXE > > ------ trying to build: > $cmake -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang ..
If your goal is use your renamed clang-cl (cl.exe) then why are you telling CMake to use to use clang.exe ? You can clearly see if your error message that ``clang.exe`` is being invoked. Shouldn't your command line be something like this? CC=cl.exe CXX=cl.exe cmake -G "Ninja" .. If you want to be really specific you could do CC=D:\LLVM-3.7.1\bin\clang-cl.exe CXX=D:\LLVM-3.7.1\bin\clang-cl.exe cmake -G "Ninja" .. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake