FYI -- conversation continued off list... here&#39;s the latest:<div><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">David Cole</b> <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span><br>
Date: Wed, Feb 18, 2009 at 11:17 AM<br>Subject: Re: [CMake] cmake is reruning on rebuild<br>To: elizabeta petreska &lt;<a href="mailto:elizabeta.petreska@gmail.com">elizabeta.petreska@gmail.com</a>&gt;<br><br><br>Do your other projects use CMake to generate the solution files? If so, then &quot;Rebuild Solution&quot; should re-run CMake. The only thing that should prevent it is if somebody sets &quot;CMAKE_SUPPRESS_REGENERATION&quot; in their CMakeLists.txt file. Maybe the other projects do that...? (But if they do, then changing a CMakeLists.txt file means you have to manually re-run CMake...)<div>

<br></div><div><br></div><div>HTH,</div><div>David</div><div><div></div><div class="Wj3C7c"><div><br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 11:05 AM, elizabeta petreska <span dir="ltr">&lt;<a href="mailto:elizabeta.petreska@gmail.com" target="_blank">elizabeta.petreska@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yes , but in my others projects this is not happening. When I select Rebuild cmake is not rerunning anew. it just rebuilds everything anew withoyut poping dialogs to me. Why is this?&nbsp;<div>

<div></div><div><br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 4:58 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just use Build Solution. Rebuild Solution causes *all* build steps everywhere to re-run, even when nothing has changed, including the ones that re-run cmake if a CMakeLists.txt file changes.<br>


<br><div>If you want to start over entirely (effective &quot;Rebuild Solution&quot;) then wipe your binary tree entirely, re-run CMake to generate a new solution file and open that solution and do &quot;Build Solution&quot;.....</div>



<div><br></div><div><br></div><div>(It takes a while to get used to this technique when you first switch from pure Visual Studio based builds (without CMake) ... but eventually, you get used to it.)</div><div><br></div><div>



<br></div><div>HTH,</div><div>David</div><div><br><div><br><div class="gmail_quote"><div><div></div><div>On Wed, Feb 18, 2009 at 10:54 AM, elizabeta petreska <span dir="ltr">&lt;<a href="mailto:elizabeta.petreska@gmail.com" target="_blank">elizabeta.petreska@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello<div><br><div>I have one project say C that is dependent on A ,and A is dependent on B.</div>


<div><br></div><div>
in C.cmakelists.txt I am doing the following :</div><div><br></div><div><div>add_subdirectory(../A &quot;${CMAKE_BINARY_DIR}&quot;)</div>
<div><br></div><div><br></div><div>ADD_LIBRARY(C SHARED</div><div>&nbsp;&nbsp;${C_S_SRCS}</div><div>)</div><div><br></div><div>TARGET_LINK_LIBRARIES(C</div><div>&nbsp;&nbsp;A</div><div>&nbsp;&nbsp;</div><div>)</div><div><br></div><div>in A cmakelists.txt I am doing the follwing :</div>




<div><br></div><div><div>add_subdirectory(../B &quot;${CMAKE_BINARY_DIR}&quot;)</div><div><br></div><div>ADD_LIBRARY(A STATIC</div><div>&nbsp;&nbsp;${A_S_SRCS}</div><div>)</div><div><br></div><div><br></div><div>TARGET_LINK_LIBRARIES(A &nbsp;</div>




<div>&nbsp;&nbsp;B</div><div>)</div><div><br></div><div>When I make the C project and select Build Solution everything compiles and works ok.</div><div>but after that when I select Rebuild Solution cmake reruns and regenerates the solutions and displayy message to me :&nbsp;</div>




<div>something like click yes to reload the solution.</div><div><br></div><div>I don&#39;t understand why this is happening cause I do not change anything in the cmakelist.txt of either A ,B ot C.</div></div></div></div>




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