<div dir="ltr">The documentation for add_custom_command() contains this little nugget when discussing the COMMAND keyword:<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">If COMMAND specifies an executable target name ...<snip>... Additionally a target-level dependency will be added so that the executable target will be built before any target using this custom command. However this does NOT add a file-level dependency that would cause the custom command to re-run whenever the executable is recompiled.</blockquote><div><br></div><div>I'm struggling to come up with a scenario where that last part about file level dependencies becomes relevant. Can anyone come up with a simple use case which highlights that particular aspect of dependencies and commands?</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div></div>