<div dir="ltr">Hi there,<div><br></div><div>The Makefile that cmake generates includes a rule to automatically re-run cmake if any of the input CMakelists.txt files change.</div><div><br></div><div>Is there a way to configure this rule to have it run clean first?</div>
<div><br></div><div><br></div><div>Currently, if you change the name of an executable target (or library), it will leave the old file in the output location, and then after re-running cmake, the Makefile will not have any record of it, so running make clean won't remove it.</div>
<div><br></div><div>I would rather have the rule call make clean before re-running cmake so that such stray outputs are not left around.</div><div><br></div><div>Is there any way to accomplish this?</div><div><br></div><div>
Thanks!</div><div>-=Abe</div></div>