<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New, monospace" size="2">
<div>Hello cmake users,</div>
<div>&nbsp;</div>
<div>I&#8217;m wondering if someone can clarify the sequence commands of CMake external project for me.&nbsp; For example, I have 2 external projects as below:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>ExternalProject_Add(A</div>
<div>PREFIX A</div>
<div>&nbsp;</div>
<div>INSTALL_COMMAND [copies includes files of A to some path]</div>
<div>)</div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div>ExternalProject_Add(B</div>
<div>PREFIX B</div>
<div>DEPENDS A</div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div>)</div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div>Project B&#8217;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?&nbsp;
I&#8217;m seeing some confusing behavior of what the find_path finds and suspect the answer is &#8216;after&#8217;.&nbsp; Can anyone confirm if this is true, and if so what&#8217;s a better solution?  I cannot run something ahead of the cmake either since the downloading of A includes
is done in A&#8217;s download step.</div>
<div>&nbsp;</div>
<div>Thanks!</div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
</font>
</body>
</html>