<div dir="ltr">Thanks Steve. I added a comment to the gitlab thread.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 6:57 AM, Steve Lorimer <span dir="ltr"><<a href="mailto:steve.lorimer@gmail.com" target="_blank">steve.lorimer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is an open issue about just this.<div><br></div><div>If ADDITIONAL_MAKE_CLEAN_FILES doesn't work for you, you may want to make your case on the issue</div><div><br></div><div><a href="https://gitlab.kitware.com/cmake/cmake/issues/16358" target="_blank">https://gitlab.kitware.com/<wbr>cmake/cmake/issues/16358</a><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 26 October 2016 at 00:59, Petr Kmoch <span dir="ltr"><<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Tiago.<br><br></div>The best I can think of is the directory property ADDITIONAL_MAKE_CLEAN_FILES: <a href="https://cmake.org/cmake/help/latest/prop_dir/ADDITIONAL_MAKE_CLEAN_FILES.html" target="_blank">https://cmake.org/cmake/help/l<wbr>atest/prop_dir/ADDITIONAL_MAKE<wbr>_CLEAN_FILES.html</a><br><br></div>You can set it to a list of files which will be removed as part of running `make clean` or its equivalent for other generators.<br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_2247122446652733597h5">On 26 October 2016 at 04:36, Tiago Macarios <span dir="ltr"><<a href="mailto:tiagomacarios@gmail.com" target="_blank">tiagomacarios@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_2247122446652733597h5"><div dir="ltr">Hi,<div><br></div><div>Is there a way to have a command to be run during a clean?</div><div><br></div><div>I have a custom_target which does a fair bit of things and it also has the ability to clean up after itself. So conceptually something like this is what I am looking for:</div><div><br></div><div><div>add_custom_target(Name ALL</div><div>    COMMAND command</div><div>    COMMAND_CLEAN command -clean</div><div>)</div></div><span class="m_2247122446652733597m_1490075221254416927HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Tiago</div></font></span></div>
<br></div></div>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br></blockquote></div><br></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>