[CMake] Build several targets using cmake --build <dir>

Nick Overdijk nick at astrant.net
Thu Mar 14 14:09:53 EDT 2013


You can only 'cmake' a single-target. If you want to have more targets, create more directories: for each target one.

On 2013-14-03, at 19:07:36 , John Drescher wrote:

>> I use cmake 2.8.10 on windows.
>> 
>> 
>> 
>> I would like to build several targets with cmake --build <dir> so  the
>> underlying build tool to do parallel jobs.
>> 
>> 
>> 
>> Currently it only seems to be possible to build one target at a time, using
>> --target .
>> (http://www.cmake.org/cmake/help/v2.8.10/cmake.html#opt:--builddir)
>> 
>> 
>> 
>> Can someone tell me how I could achieve that with current cmake version?
>> 
>> 
> I execute more than 1 cmake --build at the same time on windows. I
> actually do this in a program called runjobs
> 
> http://www.codeproject.com/Articles/25810/Run-All-Jobs-at-Once-Utility
> 
> John
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list