On 27 November 2012 14:23, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson<br>
<<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>> wrote:<br>
><br>
><br>
> On Nov 27, 2012, at 12:46 AM, Titus von Boxberg <<a href="mailto:titus@v9g.de">titus@v9g.de</a>> wrote:<br>
><br>
>> Am 27.11.2012 05:24, schrieb Michael Jackson:<br>
>>> That will teach me to hit enter in GMail..<br>
>>><br>
>>> My question is this: What is the magic CMake incantation to get Visual<br>
>>> Studio 2010 to use more than a single processor when compiling my<br>
>>> project?<br>
>> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS<br>
>><br>
>> Regards<br>
>> Titus<br>
>> --<br>
>><br>
><br>
><br>
> Thanks for the tip. I'll give it a try.<br>
<br>
I can tell you that sometimes its hard to get Visual Studio to make<br>
good use of your cores (especially if you have 8 or 12 threads) even<br>
though multithreded building is on. I believe there are too many parts<br>
of the chain that are single threaded only.</blockquote><div><br></div><div></div></div><div class="gmail_extra">It's fairly easy to make both, VS and cl.exe, utilise multiple cores,</div><div class="gmail_extra">even using command line. The problem is that build configurations like</div>
<div class="gmail_extra">NMAKE require significant gymnastics:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://public.kitware.com/pipermail/cmake/2012-September/052116.html">http://public.kitware.com/pipermail/cmake/2012-September/052116.html</a><br>
</div><div class="gmail_extra"><br></div>It is easier with VS projects:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://www.cmake.org/pipermail/cmake/2009-April/028669.html">http://www.cmake.org/pipermail/cmake/2009-April/028669.html</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,<br>-- <br>Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
</div>