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'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"><<a href="mailto:gaujay@movea.com" target="_blank">gaujay@movea.com</a>></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 'cmake --build' 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'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 <dir><br>
<br>
You can only 'cmake' 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>
>> I use cmake 2.8.10 on windows.<br>
>><br>
>><br>
>><br>
>> I would like to build several targets with cmake --build <dir> so<br>
>> the underlying build tool to do parallel jobs.<br>
>><br>
>><br>
>><br>
>> Currently it only seems to be possible to build one target at a time,<br>
>> using --target .<br>
>> (<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>
>><br>
>><br>
>><br>
>> Can someone tell me how I could achieve that with current cmake version?<br>
>><br>
>><br>
> I execute more than 1 cmake --build at the same time on windows. I<br>
> actually do this in a program called runjobs<br>
><br>
> <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>
><br>
> John<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<br>
> <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:<br>
> <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>
<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>