Re: [CMake] Make clean in VS can't delete read only files

2010-11-09 Thread Michael Hertling
On 11/10/2010 01:17 AM, James Bigler wrote: > I have a build rule that copies files from the source tree to the build > tree: > > foreach( script ${scripts} ) > set( src "${CMAKE_CURRENT_SOURCE_DIR}/${script}" ) > set( dest "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${script}" ) > list( APPEND dest

[CMake] Make clean in VS can't delete read only files

2010-11-09 Thread James Bigler
I have a build rule that copies files from the source tree to the build tree: foreach( script ${scripts} ) set( src "${CMAKE_CURRENT_SOURCE_DIR}/${script}" ) set( dest "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${script}" ) list( APPEND dest_files "${dest}" ) add_custom_command( OUTPUT "${des