[CMake] multiple files/directory removal using cmake -E remove and cmake -E remove_directory

Michael Wild themiwi at gmail.com
Thu Apr 14 06:53:43 EDT 2011


On 04/14/2011 12:47 PM, J.S. van Bethlehem wrote:
> Dear users,
> 
> As a new user CMake I've come across some things I don't fully 
> understand yet. Here is such a thing: when using cmake -E is there a
> way to pass multiple files at once when using 'remove' or
> 'remove_directory', ie something like: cmake -E remove file1 file2
> file3 (well... that syntax is not valid, but is there a way to do the
> above, without having to call cmake -E for every file separately?)
> 
> Yours sincerely, Jakob van Bethlehem

Yes, read

cmake -E help


Michael


More information about the CMake mailing list