Going into the build configuration and telling it to run tests, (I think the checkbox is RUNTESTS, but I don&#39;t have my laptop here), causes it to run tests as it is trying to compile the main executable for my project.<br>
<br>The directory structure is:<br>lib1<br>lib2<br>lib3<br>main (location of the main() entry point of the program)<br>testing<br><br>CTEST is being called before it is done compiling my application.<br><br>Regards,<br><br>
Juan<br><br><div class="gmail_quote">On Thu, Jul 30, 2009 at 1:38 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If something is non-deterministic then it means there is a missing dependency somewhere...<div>

<br></div><div>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.<br>


<br></div><div>What exactly is it that does not build in the proper order? (Send along some CMakeLists snippets perhaps...)</div><div><br></div><div>When you say &quot;RUNTESTS (I can&#39;t remember) enabled&quot; that does not really help us help you. If you could just post the error output, perhaps the group can spot something...</div>


<div><br></div><font color="#888888"><div><br></div><div>David</div><div><br></div><div><br></div></font><div><div class="gmail_quote"><div><div></div><div>On Thu, Jul 30, 2009 at 2:16 PM, j s <span dir="ltr">&lt;<a href="mailto:j.s4403@gmail.com" target="_blank">j.s4403@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>I guess I won&#39;t be using the parallel option in Visual Studio, then.  A non-deterministic build order is not worth the risk.<br>


<br>Juan<div><div></div><div><br><br><div class="gmail_quote">On Thu, Jul 30, 2009 at 10:53 AM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>On Thu, Jul 30, 2009 at 11:44 AM, j s&lt;<a href="mailto:j.s4403@gmail.com" target="_blank">j.s4403@gmail.com</a>&gt; wrote:<br>




&gt; By default visual studio uses 2 threads on my machine, a dual core AMD.<br>
&gt;<br>
&gt; I notice when I have RUNTESTS (I can&#39;t remember) enabled, it may attempt to<br>
&gt; run the tests before my project is even built.<br>
&gt;<br>
&gt; If certain sub directories depend on a target in another directory already<br>
&gt; being built, is it safe to use the multi-threaded option in visual studio?<br>
&gt;<br>
<br>
</div></div>I have been using parallel builds with visual studio 2005 for over 1<br>
year. It sometimes creates situations like this but since it saves me<br>
10s of minutes per day I deal with the issues. Generally building the<br>
same project a second time fixes any problems and is usually quick<br>
since most stuff builds correctly on the first pas.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br>
</div></div><br></div></div><div>_______________________________________________<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></blockquote></div><br></div>
</blockquote></div><br>