[CMake] How to get Visual Studio to use more than a single core for compiling

Gary Little gglittle at comcast.net
Tue Nov 27 11:49:37 EST 2012


Hmm, boy was that useless. I searched and found lot's a stuff about Mutant Ninja Turtles … I'm a bit old for that. I did find that ninja seems to be part of Chromium. This link will probably get you what you need for Windows:

http://code.google.com/p/chromium/wiki/NinjaBuild#Configure_your_system_to_use_Ninja

As I stated earlier, the version I use I get from my company tools site where someone else has done the grunt work to get ninja to work under windows. Once working though, you use the following when you invoke CMake:

cmake -G "Ninja" …

Gary Little
gglittle at comcast.net
C 952-454-4629
H 952-223-1349
Tain't what you want that makes you fat, it's what you get.



On Nov 27, 2012, at 10:05 AM, Vyacheslav Karamov <ubuntulist at yandex.ru> wrote:

> How could I use it on Windows?
> 
> 27.11.2012 17:36, Gary Little пишет:
>> Try ninja, which is available via macports. My primary project uses CMake to create 3 Windows build environments: nmake, VisualStudio, and ninja. In the VS environment I can use msbuild /m <project>.sln. The ninja environment is about the tastest build that I have available for Windows.
>> 
>> Gary Little
>> gglittle at comcast.net
>> C 952-454-4629
>> H 952-223-1349
>> Tain't what you want that makes you fat, it's what you get.
>> 
>> 
>> 
>> On Nov 26, 2012, at 10:24 PM, Michael Jackson <mike.jackson at bluequartz.net> wrote:
>> 
>>> That will teach me to hit enter in GMail..
>>> 
>>> My question is this: What is the magic CMake incantation to get Visual
>>> Studio 2010 to use more than a single processor when compiling my
>>> project?
>>> 
>>> Thanks
>>> -----
>>> Mike Jackson
>>> _________________________________________________________
>>> Mike Jackson                  mike.jackson at bluequartz.net
>>> BlueQuartz Software                    www.bluequartz.net
>>> Principal Software Engineer                  Dayton, Ohio
>>> 
>>> 
>>> On Mon, Nov 26, 2012 at 11:22 PM, Michael Jackson
>>> <mike.jackson at bluequartz.net> wrote:
>>>> _________________________________________________________
>>>> Mike Jackson                  mike.jackson at bluequartz.net
>>>> BlueQuartz Software                    www.bluequartz.net
>>>> Principal Software Engineer                  Dayton, Ohio
>>> --
>>> 
>>> 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
>> --
>> 
>> 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
>> 
>> 
> 
> --
> 
> 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



More information about the CMake mailing list