[cmake-developers] Visual Studio and multi-core builds.

Bill Hoffman bill.hoffman at kitware.com
Wed Jun 3 17:47:30 EDT 2015


On 6/3/2015 4:32 PM, Davy Durham wrote:
> Greetings,
>    Any reason that cmake's own VS project generation doesn't make use of
> /MP <https://msdn.microsoft.com/en-us/library/bb385193.aspx> to make use
> of multiple cores?  I added it manually, and cmake build times go
> through the floor.  That option has been present since VS 2008.
http://www.kitware.com/blog/home/post/434

" The downside is that the IDE will still perform target level 
parallelism along with object level parallelism which can lead to 
excessive parallelism grinding your machine and GUI to a halt. It has 
also been known to randomly create bad object files. However, the speed 
up is significant so it is usually worth the extra trouble it causes."

-Bill



More information about the cmake-developers mailing list