Never use "rebuild all" with a cmake generated *.sln file... Just use "Build Solution"...<br><br><br><div class="gmail_quote">On Mon, Mar 22, 2010 at 9:41 AM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On Mon, Mar 22, 2010 at 9:32 AM, Benoit Thomas<br>
<div class="im"><<a href="mailto:benoit.thomas@gameloft.com">benoit.thomas@gameloft.com</a>> wrote:<br>
</div><div class="im">> Yes that's what I mean, cmake re-runs from the root directory of the<br>
> project, for every target in my project.<br>
><br>
> Which means when I do a rebuild all in visual studio, every target in my<br>
> project re-runs the root CMakeLists.txt, which re-build the whole visual<br>
> studio solution. On my quad core, this means 8 cmake run at the same time,<br>
> and they all do the same job.<br>
><br>
</div>I do not have this on my i7. CMake 2.8.1 appears to be single threaded.<br>
<div class="im">><br>
> Currently, when I generate a Visual Studio project from cmake, I have to<br>
> manually delete all CMakeLists.txt from every target in order to be able to<br>
> use the rebuild all in Visual Stduio.<br>
><br>
</div>I definitely do not have that.<br>
<div class="im">><br>
> So, I was looking for an option to disable it, or override this behavior.<br>
><br>
> I hope this explain it better (I'm still new to cmake).<br>
><br>
> Thank you,<br>
> Ben.<br>
><br>
> On 2010-03-22 04:52, David Cole wrote:<br>
><br>
> On Fri, Mar 19, 2010 at 5:28 PM, Benoit Thomas <<a href="mailto:benoit.thomas@gameloft.com">benoit.thomas@gameloft.com</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I have the following directory structure<br>
>><br>
>> root<br>
>> |--- project A<br>
>> |--- project B<br>
>><br>
>> Project A & B both have their cmakelists.txt file<br>
>><br>
<br>
</div>I use this and do not see the effect you are describing.<br>
<div class="im"><br>
>> Root has a cmakelists.txt file which does add_subdirectory for project A<br>
>> and B<br>
>><br>
>> When I generate the tree in visual studio, I have a solution with both<br>
>> projects; and both project A & B have their corresponding cmakelists.txt<br>
>> added to the project.<br>
>><br>
>> However, the command line for the custom build steps on those files refer<br>
>> to root/cmakelists.txt and not project A or B/cmakelists.txt<br>
>><br>
>> My problem come when I do a rebuild all, both project A & B tries to<br>
>> rebuild both projects and it creates other problems; I have to manually run<br>
>> cmake root in command prompt before continuing the build.<br>
>><br>
>> My real project is far bigger than what I explain here, but I do not know<br>
>> what I'm doing wrong. Can I override this custom build step ? Or can I<br>
>> simply disable it ?<br>
>><br>
>> Thank you,<br>
>> Ben.<br>
>><br>
><br>
> Regardless of which CMakeLists.txt file you edit, cmake always re-runs from<br>
> the root directory of the project. Is that what you mean?<br>
> Or are you running some custom build steps using add_custom_command that are<br>
> behaving differently than you expect?<br>
><br>
> HTH,<br>
> David<br>
><br>
><br>
</div><div class="im">> _______________________________________________<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>
</div>--<br>
John M. Drescher<br>
<font color="#888888"><br>
<br>
<br>
--<br>
John M. Drescher<br>
</font><div><div></div><div class="h5">_______________________________________________<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>