[cfe-dev] Building clang on Windows with CMake/Ninja

Óscar Fuentes ofv at wanadoo.es
Thu Nov 14 12:48:18 PST 2013


Edward Diener <eldlistmailingz at tropicsoft.com>
writes:

> Thanks for the info. How does Ninja know to be using MingW as opposed
> to other development environments I have ?

CMake has a list of toolsets to search for. IIRC for the Ninja generator
MinGW takes precedence, just make sure that its `bin' directory is
listed in PATH, but if after doing that CMake picks VS first, delete and
recreate the build directory and set this environment variables before
invoking CMake:

set CC=gcc
set CXX=g++




More information about the cfe-dev mailing list