[CMake] visual studio parallel build

David Cole david.cole at kitware.com
Thu Jul 30 14:38:50 EDT 2009


If something is non-deterministic then it means there is a missing
dependency somewhere...
This should work. We have many dashboards that run with parallel Visual
Studio builds and work reliably day after day. Whenever I have seen a
problem with it, there has always been a missing depedency expression in the
CMakeLists.txt files.

What exactly is it that does not build in the proper order? (Send along some
CMakeLists snippets perhaps...)

When you say "RUNTESTS (I can't remember) enabled" that does not really help
us help you. If you could just post the error output, perhaps the group can
spot something...


David


On Thu, Jul 30, 2009 at 2:16 PM, j s <j.s4403 at gmail.com> wrote:

> I guess I won't be using the parallel option in Visual Studio, then.  A
> non-deterministic build order is not worth the risk.
>
> Juan
>
>
> On Thu, Jul 30, 2009 at 10:53 AM, John Drescher <drescherjm at gmail.com>wrote:
>
>> On Thu, Jul 30, 2009 at 11:44 AM, j s<j.s4403 at gmail.com> wrote:
>> > By default visual studio uses 2 threads on my machine, a dual core AMD.
>> >
>> > I notice when I have RUNTESTS (I can't remember) enabled, it may attempt
>> to
>> > run the tests before my project is even built.
>> >
>> > If certain sub directories depend on a target in another directory
>> already
>> > being built, is it safe to use the multi-threaded option in visual
>> studio?
>> >
>>
>> I have been using parallel builds with visual studio 2005 for over 1
>> year. It sometimes creates situations like this but since it saves me
>> 10s of minutes per day I deal with the issues. Generally building the
>> same project a second time fixes any problems and is usually quick
>> since most stuff builds correctly on the first pas.
>>
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090730/595cfba0/attachment-0001.htm>


More information about the CMake mailing list