<div dir="ltr">After taking a look at the source code, I'm convinced this option is questionable. Issue created in gitlab <a href="https://gitlab.kitware.com/cmake/cmake/issues/16784">here</a>.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 6, 2017 at 9:35 AM, Craig Scott <span dir="ltr"><<a href="mailto:craig.scott@crascit.com" target="_blank">craig.scott@crascit.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">Yes, but in both cases the directory foo is still not deleted! At least on OSX any way.</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Apr 6, 2017 at 9:22 AM, Mark Ferry <span dir="ltr"><<a href="mailto:mark@cognomen.co.uk" target="_blank">mark@cognomen.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Craig<br>
<span><br>
On Thu, 06 Apr 2017 08:55:58 +1000, Craig Scott wrote:<br>
> Can anyone identify a scenario where the -f option to the CMake command<br>
> mode's "remove" command makes any difference?<br>
><br>
<br>
</span>How about removing directories:<br>
<br>
~/src/cmake-test$ cmake --version<br>
cmake version 3.0.2<br>
<br>
CMake suite maintained and supported by Kitware (<a href="http://kitware.com/cmake" rel="noreferrer" target="_blank">kitware.com/cmake</a>).<br>
~/src/cmake-test$ mkdir foo<br>
<br>
~/src/cmake-test$ cmake -E remove foo<br>
~/src/cmake-test$ echo $?<br>
1<br>
<br>
~/src/cmake-test$ cmake -E remove -f foo<br>
~/src/cmake-test$ echo $?<br>
0<br>
<span class="m_-6382749037296319016HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Cognomen Ltd<br>
<a href="http://cognomen.co.uk" rel="noreferrer" target="_blank">http://cognomen.co.uk</a><br>
<a href="tel:%2B44%207855%20790184" value="+447855790184" target="_blank">+44 7855 790184</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div class="m_-6382749037296319016gmail_signature" data-smartmail="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>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>