<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: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><blockquote type="cite"><br></blockquote><blockquote type="cite">-- Noel<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please keep messages on-topic and check the CMake FAQ at:<br></blockquote><blockquote type="cite"><a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote><blockquote type="cite"><br></blockquote><br>What is the value of "${Bwr_Files}"?<br></div></blockquote><div><br></div>A list of both file and directory names.</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><br><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>Tiger OS X:</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>185.64 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>96.41 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>disk1s2</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>/Volumes/Tiger OS X</div></div><div><br></div></div><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></body></html>