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

Davy Durham ddurham at bomgar.com
Wed Jun 3 17:55:30 EDT 2015


I haven't ever had this be a problem, but FWIW one can find "Maximum 
number of parallel project builds" under Tools -> Options -> Projects 
and Solutions -> Build and Run and set that to 1 to disable target 
parallelism.  Of course, that's environmental rather than something 
cmake could control


On 06/03/2015 04:47 PM, Bill Hoffman wrote:
> 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