[CMake] Visual Studio <Version> <Arch> - Ninja Generator
Hendrik Sattler
post at hendrik-sattler.de
Mon Aug 31 11:49:13 EDT 2015
Hi,
did you really enable parallel compiling in VS with /MP24 or the like? Note that using devenv to build uses the number from the IDE user settings but using msbuild needs a command line option.
Else just create a custom target that calls cmake for ninja and afterwards ninja itself in yet another build tree. you can limit the creation of that target to if(MSVC_IDE).
HS
Am 31. August 2015 16:35:01 MESZ, schrieb Guillaume Dumont <dumont.guillaume at gmail.com>:
>Hi all,
>
>I would like to know what kind of effort would it take to generate a
>Visual
>Studio generator that bypasses the normal MSBuild build and uses Ninja
>instead. I have been working on different projects which build much
>faster
>with ninja than MSBuild (several orders of magnitude on a machine with
>24
>cores). Still I like to use the Visual Studio environment to use the
>debugger. 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.
>
>--
>Guillaume Dumont
>=========================
>dumont.guillaume at gmail.com
>
>
>------------------------------------------------------------------------
>
>--
>
>Powered by www.kitware.com
>
>Please keep messages on-topic and check the CMake FAQ at:
>http://www.cmake.org/Wiki/CMake_FAQ
>
>Kitware offers various services to support the CMake community. For
>more information on each offering, please visit:
>
>CMake Support: http://cmake.org/cmake/help/support.html
>CMake Consulting: http://cmake.org/cmake/help/consulting.html
>CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150831/30630a76/attachment.html>
More information about the CMake
mailing list