<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 16, 2011, at 11:57 AM, Belcourt, Kenneth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 16, 2011, at 11:46 AM, David Cole wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, Mar 16, 2011 at 1:40 PM, Belcourt, Kenneth &lt;<a href="mailto:kbelco@sandia.gov">kbelco@sandia.gov</a>&gt; wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">A quick bug report with CMake 2.8.4 on OSX 10.5.8 built with Intel 11.0.064.<br></blockquote><blockquote type="cite">&nbsp;This command works fine<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">file(REMOVE ${Bwr_Files})<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">while this one fails.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">file(REMOVE_RECURSE ${Bwr_Files})<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And by fails I mean it doesn't remove any files at all, much less<br></blockquote><blockquote type="cite">recursively. &nbsp;This should be easy to reproduce, do I need to file a bug or<br></blockquote><blockquote type="cite">can this get fixed for 2.8.5?<br></blockquote></div></blockquote></div><div><br><blockquote type="cite"><div>The arguments to file(REMOVE_RECURSE are intended to be directory<br>names. Are they?<br></div></blockquote><div><br></div>One of the names is a directory, the rest are files.</div><div><br></div><div><div>set(Bwr_Files</div><div>&nbsp;&nbsp;${Bwr_Dir}/acoeff.txt</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWRG_v2-0.DIA</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWRG_v2-0.OUT</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_OUT.HTM</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_v2-0.DIA</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_v2-0.MES</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_v2-0.OUT</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_v2-0.PTF</div><div>&nbsp;&nbsp;${Bwr_Dir}/BWR_v2-0.RST</div><div>&nbsp;&nbsp;${Bwr_Dir}/extDIAG_v2-0</div><div>&nbsp;&nbsp;${Bwr_Dir}/fort.32</div><div>&nbsp;&nbsp;${Bwr_Dir}/fort.36</div><div>&nbsp;&nbsp;${Bwr_Dir}/HTML</div><div>&nbsp;&nbsp;${Bwr_Dir}/MELGIN_v2-0.CAN</div><div>&nbsp;&nbsp;${Bwr_Dir}/NodeDiagram.html</div><div>&nbsp;&nbsp;${Bwr_Dir}/tmpry</div><div>)</div><div><br></div></div><div>The funny thing is remove_recurse works as expected on Linux, it removes the files and recursively removes the directories. &nbsp;On the Mac remove_recurse does nothing at all but file(remove ...) on the Mac works as expected, it just leaves the directories alone.</div><div><br><blockquote type="cite"><div>Is the Mac file system in question case-sensitive, or<br>case-insensitive? (By default, most Macs are case-insensitive... and<br></div></blockquote><div><br></div>and case-preserving. &nbsp;Yes, this particular disk is the default.</div></div></blockquote><div><br></div>but it would help if it was the Leopard disk.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 198.6px; text-indent: -158.6px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp;&nbsp;Volumes:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; "><b>LeopardOSX:</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; Capacity:<span class="Apple-tab-span" style="white-space:pre">        </span>232.76 GB</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; Available:<span class="Apple-tab-span" style="white-space:pre">        </span>34.45 GB</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; Writable:<span class="Apple-tab-span" style="white-space:pre">        </span>Yes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; File System:<span class="Apple-tab-span" style="white-space:pre">        </span>Journaled HFS+</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; BSD Name:<span class="Apple-tab-span" style="white-space:pre">        </span>disk2s2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 142.9px; text-indent: -82.9px; font: normal normal normal 11px/normal 'Lucida Grande'; ">&nbsp; Mount Point:<span class="Apple-tab-span" style="white-space:pre">        </span>/</div><div><br></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite"><div>we've had other reports of file weirdnesses on<br>case-sensitive-file-system-based Macs -- we do not have one of these<br>presently here at Kitware, so it's hard for us to repro any such bugs<br>to figure out if there is a good fix or not. Suggestions welcome.)<br></div></blockquote></div><div><br></div></div><div>What command is run on the Mac, any easy way to find out? &nbsp;The file(remove ...) works okay, I'd have guessed that file(remove_recurse ...) just adds the -r option to the rm -f command.</div><div><br></div><div>-- Noel</div><div><br></div><span>&lt;ATT00002..txt&gt;</span></div></blockquote></div><br></body></html>