<div dir="ltr"><div><div>I've recently begun using CMake on an existing project I've taken over, and I feel like I'm mostly getting used to it, though there is still a vast amount to learn.  I've got nearly the entire project building successfully, with the exception of a directory of external scripts that need to be configured at the end of the install process to create some index files.<br><br></div>So, in a nutshell, there's a script that takes care of this post-install configuration, that needs to be executed once the target tree of directories and script files are in place, copied from the source tree. And I'm finding that when the script is called during the build, the INSTALL(DIRECTORY ...) command from the CMakeLists.txt directory hasn't been run yet, so the tree of script files hasn't been put in place yet and the script (and the build) fails.<br><br></div><div>FWIW, if I leave out the add_custom_command and add_custom_target that execute the script, the directory tree does copy correctly.<br></div><div><br></div>I have not found any guidance on how to specify that the directory tree gets copied first. How is this normally done?<br><br><div><div><div><div><div><br>Thanks,<br>CR<span style="font-family:monospace,monospace"></span><br><span style="font-family:monospace,monospace"></span><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="font-family:monospace,monospace"><br><br><br></span></div></div></div></div></div></div></div>
</div></div></div></div></div></div>