[CMake] Visual Studio <Version> <Arch> - Ninja Generator

Gonzalo ggarra13 at gmail.com
Mon Aug 31 12:29:53 EDT 2015



El 31/08/15 a las 11:35, Guillaume Dumont escribió:
> Hi all,
> Using ninja is especially useful for projects with a lot of CUDA files 
> which are built sequentially for every target using MSVS.
>
> I would like to contribute but I don't really know where to start and 
> if such an effort already exists.
>
Hi, Guillaume.

Currently cmake offers support for Ninja Makefiles.  You need to set up 
your build environment by running the microsoft setenv.bat file (or 
whatever is called in your version of msdev, as it has changed names a 
couple of times).  That should allow cmake to find the proper compiler.

Then, if you specify:

$ cd <location of your CMakeLists.txt>
$ mkdir ninja_build
$ cd ninja_build
$ cmake .. -G Ninja

You will get ninja files for your project.



More information about the CMake mailing list