If the dependencies are already satisfied, and the cmake_make_program can run mutliple in parallel, then it works great.<div><br></div><div>I have a cmake script that builds other cmake top level projects; and this ends up building in parallel on visual studio.</div>
<div><br></div><div>can&#39;t do it with any other compiler I use for windows (make can be aliased on linux to include a /j4).<br><br><div class="gmail_quote">On Fri, Mar 15, 2013 at 1:37 AM, Gregoire Aujay <span dir="ltr">&lt;<a href="mailto:gaujay@movea.com" target="_blank">gaujay@movea.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Thanks for your replies. I understand that I can only &#39;cmake --build&#39; one target at a time.<br>
I think that the solutions you propose do not benefit from tools, like ninja, that have parallel build capabilities.<br>
<br>
I&#39;ll file a feature request.<br>
<br>
Regards,<br>
Greg<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: Nick Overdijk [mailto:<a href="mailto:nick@astrant.net">nick@astrant.net</a>]<br>
Sent: jeudi 14 mars 2013 19:10<br>
To: John Drescher<br>
Cc: Gregoire Aujay; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] Build several targets using cmake --build &lt;dir&gt;<br>
<br>
You can only &#39;cmake&#39; a single-target. If you want to have more targets, create more directories: for each target one.<br>
<br>
On 2013-14-03, at 19:07:36 , John Drescher wrote:<br>
<br>
&gt;&gt; I use cmake 2.8.10 on windows.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I would like to build several targets with cmake --build &lt;dir&gt; so<br>
&gt;&gt; the underlying build tool to do parallel jobs.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Currently it only seems to be possible to build one target at a time,<br>
&gt;&gt; using --target .<br>
&gt;&gt; (<a href="http://www.cmake.org/cmake/help/v2.8.10/cmake.html#opt:--builddir" target="_blank">http://www.cmake.org/cmake/help/v2.8.10/cmake.html#opt:--builddir</a>)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Can someone tell me how I could achieve that with current cmake version?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; I execute more than 1 cmake --build at the same time on windows. I<br>
&gt; actually do this in a program called runjobs<br>
&gt;<br>
&gt; <a href="http://www.codeproject.com/Articles/25810/Run-All-Jobs-at-Once-Utility" target="_blank">http://www.codeproject.com/Articles/25810/Run-All-Jobs-at-Once-Utility</a><br>
&gt;<br>
&gt; John<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>