[CMake] Problem using VS-compiled Clang as a C/C++ compiler.

Dan Liew dan at su-root.co.uk
Fri Mar 4 06:39:28 EST 2016


Hi,

On 4 March 2016 at 11:16, Anton Yartsev <anton.yartsev at gmail.com> wrote:
> Hi Cristian,
>
> thanks for the replay. I have clang-cl first in PATH, the problem persists.

Just to check. Did you run cmake in a new (i.e. empty) build directory
when you fixed that? IIRC once a compiler has been picked
during configure you can't change it so if you need to change it you
have to build in a new build directory or delete everything in
the current build directory.

Shouldn't the following work (assuming clang-cl.exe is in your path)

CXX=clang-cl.exe CC=clang-cl.exe cmake -G "Ninja" ..

?


More information about the CMake mailing list