[CMake] How to generate for Ninja + MSVC?
Robert Dailey
rcdailey.lists at gmail.com
Wed Dec 2 14:39:48 EST 2015
On Wed, Dec 2, 2015 at 1:37 PM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> On Wed, Dec 2, 2015 at 1:29 PM, Nils Gladitz <nilsgladitz at gmail.com> wrote:
>> On 02.12.2015 20:18, Robert Dailey wrote:
>>>
>>> Is there a way to generate for Ninja using MSVC toolchain? If so, how
>>> do I do that? Do I need a toolchain file?
>>
>>
>> You can select the Ninja generator (e.g. cmake -G Ninja) while running cmake
>> from the desired Visual Studio command line environment.
>
> This doesn't work unfortunately; it still finds GNU 4.8.3 compiler somehow.
For some reason Strawberry Perl installed gcc/g++ to my PATH. I
removed this and it's finding MSVC 19 now. Thanks.
More information about the CMake
mailing list