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 "Rebuild Solution") then wipe your binary tree entirely, re-run CMake to generate a new solution file and open that solution and do "Build Solution".....</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">On Wed, Feb 18, 2009 at 10:54 AM, elizabeta petreska <span dir="ltr"><<a href="mailto:elizabeta.petreska@gmail.com">elizabeta.petreska@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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 "${CMAKE_BINARY_DIR}")</div>
<div><br></div><div><br></div><div>ADD_LIBRARY(C SHARED</div><div> ${C_S_SRCS}</div><div>)</div><div><br></div><div>TARGET_LINK_LIBRARIES(C</div><div> A</div><div> </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 "${CMAKE_BINARY_DIR}")</div><div><br></div><div>ADD_LIBRARY(A STATIC</div><div> ${A_S_SRCS}</div><div>)</div><div><br></div><div><br></div><div>TARGET_LINK_LIBRARIES(A </div>
<div> 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 : </div>
<div>something like click yes to reload the solution.</div><div><br></div><div>I don'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>_______________________________________________<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>