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>