Re: Feature request: change how CMake chooses compiler when Ninja is used (Windows)
On 2017 M05 27, Sat 15:49:35 CEST biologi spm wrote:
> Hi CMake developers,
> When both Mingw64 GCC and MSVC is available in PATH and run cmake
> -GNinja, cmake always choose GCC. I have to manually remove GCC from
> PATH or type -DCMAKE_IGNORE_PATH= which is very long.
you can set the CC and CXX env. variables to point at the compiler you want to
use. CMake should pick this one up then.