<div class="gmail_quote">On Wed, Apr 20, 2011 at 12:52 PM, Yu, Daphne (SCR US) <span dir="ltr"><<a href="mailto:daphne.yu@siemens.com">daphne.yu@siemens.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;">
<div>
<font face="Courier New, monospace" size="2">
<div>Hello cmake users,</div>
<div> </div>
<div>I’m wondering if someone can clarify the sequence commands of CMake external project for me. For example, I have 2 external projects as below:</div>
<div> </div>
<div> </div>
<div>ExternalProject_Add(A</div>
<div>PREFIX A</div>
<div> </div>
<div>INSTALL_COMMAND [copies includes files of A to some path]</div>
<div>)</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>ExternalProject_Add(B</div>
<div>PREFIX B</div>
<div>DEPENDS A</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>)</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>Project B’s target cmake has some find_path commands to look for the includes of project A, which is not available until the INSTALL_COMMAND of project A. The question is, is the INSTALL_COMMAND of A executed before the CONFIGURE step of B or after?
I’m seeing some confusing behavior of what the find_path finds and suspect the answer is ‘after’. Can anyone confirm if this is true, and if so what’s a better solution? I cannot run something ahead of the cmake either since the downloading of A includes
is done in A’s download step.</div>
<div> </div>
<div>Thanks!</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
</font>
</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><br>All steps of B occur after the last step of A.<br><br>B may depend on anything that is done in any step of A.<br>
<br>If not, it's a bug: please provide steps to reproduce the problem.<br><br>HTH,<br>David<br><br>