On 27 November 2012 14:47, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Tue, Nov 27, 2012 at 9:41 AM, Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt; wrote:<br>
&gt; On 27 November 2012 14:23, John Drescher &lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson<br>
&gt;&gt; &lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Nov 27, 2012, at 12:46 AM, Titus von Boxberg &lt;<a href="mailto:titus@v9g.de">titus@v9g.de</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Am 27.11.2012 05:24, schrieb Michael Jackson:<br>
&gt;&gt; &gt;&gt;&gt; That will teach me to hit enter in GMail..<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; My question is this: What is the magic CMake incantation to get Visual<br>
&gt;&gt; &gt;&gt;&gt; Studio 2010 to use more than a single processor when compiling my<br>
&gt;&gt; &gt;&gt;&gt; project?<br>
&gt;&gt; &gt;&gt; You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Regards<br>
&gt;&gt; &gt;&gt; Titus<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks for the tip. I&#39;ll give it a try.<br>
&gt;&gt;<br>
&gt;&gt; I can tell you that sometimes its hard to get Visual Studio to make<br>
&gt;&gt; good use of your cores (especially if you have 8 or 12 threads) even<br>
&gt;&gt; though multithreded building is on. I believe there are too many parts<br>
&gt;&gt; of the chain that are single threaded only.<br>
&gt;<br>
&gt;<br>
&gt; It&#39;s fairly easy to make both, VS and cl.exe, utilise multiple cores,<br>
&gt; even using command line. The problem is that build configurations like<br>
&gt; NMAKE require significant gymnastics:<br>
&gt;<br>
&gt; <a href="http://public.kitware.com/pipermail/cmake/2012-September/052116.html" target="_blank">http://public.kitware.com/pipermail/cmake/2012-September/052116.html</a><br>
&gt;<br>
&gt; It is easier with VS projects:<br>
&gt;<br>
&gt; <a href="http://www.cmake.org/pipermail/cmake/2009-April/028669.html" target="_blank">http://www.cmake.org/pipermail/cmake/2009-April/028669.html</a><br>
<br>
</div></div>My comment was even though it will do multithreaded builds with VS<br>
projects for some projects it will build at very low CPU utilization<br>
for long periods while other projects it maxes out at 100% on all 12<br>
cores.</blockquote><div><br></div><div>Right, perhaps complex inter-project dependencies halt the processes.<br></div></div><br><br clear="all"><div><br></div>-- <br>Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>


</div>