[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] How can I tell the ninja generator on Windows to use cl.exe?
From:       Peter_Kümmel <syntheticpp () gmx ! net>
Date:       2012-09-12 10:40:15
Message-ID: 5050668F.5070008 () gmx ! net
[Download RAW message or body]

On 12.09.2012 12:00, Nico Weber wrote:
> Hi,
>
> when I installed MinGW, `cmake -G Ninja` started producing ninja files
> that use MinGW's gcc to compile source files. How can I tell cmake to
> generate ninja files that use cl.exe instead?
>
> I tried searching for "cmake ninja mingw msvs" and a few related
> terms, but I didn't find anything.
>
> Thanks,
> Nico


When only cl.exe is in PATH cmake only finds cl.exe.
Maybe it is enough to have cl before mingw in PATH.

Or try to set CMAKE_C_COMPILER.

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic