<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> </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>
</body>
</html>