On Mar 16, 2011, at 11:57 AM, Belcourt, Kenneth wrote:


On Mar 16, 2011, at 11:46 AM, David Cole wrote:

On Wed, Mar 16, 2011 at 1:40 PM, Belcourt, Kenneth <kbe...@sandia.gov> wrote:
Hi,

A quick bug report with CMake 2.8.4 on OSX 10.5.8 built with Intel 11.0.064.
 This command works fine

file(REMOVE ${Bwr_Files})

while this one fails.

file(REMOVE_RECURSE ${Bwr_Files})

And by fails I mean it doesn't remove any files at all, much less
recursively. This should be easy to reproduce, do I need to file a bug or
can this get fixed for 2.8.5?


The arguments to file(REMOVE_RECURSE are intended to be directory
names. Are they?

One of the names is a directory, the rest are files.

set(Bwr_Files
  ${Bwr_Dir}/acoeff.txt
  ${Bwr_Dir}/BWRG_v2-0.DIA
  ${Bwr_Dir}/BWRG_v2-0.OUT
  ${Bwr_Dir}/BWR_OUT.HTM
  ${Bwr_Dir}/BWR_v2-0.DIA
  ${Bwr_Dir}/BWR_v2-0.MES
  ${Bwr_Dir}/BWR_v2-0.OUT
  ${Bwr_Dir}/BWR_v2-0.PTF
  ${Bwr_Dir}/BWR_v2-0.RST
  ${Bwr_Dir}/extDIAG_v2-0
  ${Bwr_Dir}/fort.32
  ${Bwr_Dir}/fort.36
  ${Bwr_Dir}/HTML
  ${Bwr_Dir}/MELGIN_v2-0.CAN
  ${Bwr_Dir}/NodeDiagram.html
  ${Bwr_Dir}/tmpry
)

The funny thing is remove_recurse works as expected on Linux, it removes the files and recursively removes the directories. On the Mac remove_recurse does nothing at all but file(remove ...) on the Mac works as expected, it just leaves the directories alone.

Is the Mac file system in question case-sensitive, or
case-insensitive? (By default, most Macs are case-insensitive... and

and case-preserving.  Yes, this particular disk is the default.

but it would help if it was the Leopard disk.

  Volumes:
LeopardOSX:
  Capacity:     232.76 GB
  Available:    34.45 GB
  Writable:     Yes
  File System:  Journaled HFS+
  BSD Name:     disk2s2
  Mount Point:  /

we've had other reports of file weirdnesses on
case-sensitive-file-system-based Macs -- we do not have one of these
presently here at Kitware, so it's hard for us to repro any such bugs
to figure out if there is a good fix or not. Suggestions welcome.)


What command is run on the Mac, any easy way to find out? The file(remove ...) works okay, I'd have guessed that file(remove_recurse ...) just adds the -r option to the rm -f command.

-- Noel

<ATT00002..txt>

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to