Re: [CMake] cmake -E remove xx*, wildcards win32?

2011-08-17 Thread Johan Björk
If you are doing this at cmake time, simply use glob() to find the files,
then remove them using file(REMOVE).
If you are doing it as part of a target, try and create a new .cmake file
(configure_file or file(WRITE) that does glob+remove and execute it using
cmake -P script.cmake

/Johan


On Thu, Aug 18, 2011 at 7:31 AM, Arne Pagel  wrote:

> Hello,
> I am trying to use cmake for a cross platform project.
>
> I want to delete some files using cmake -E remove file*
>
> This works on an linux system, but on an windows system wildcards are not
> working,
> I just can delete files using their explicit name. In my case the file
> names are not known, since they have a date coded into it.
>
> Any Idea?
>
> regards
>   Arne
> __**_
> 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
>
___
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

[CMake] cmake -E remove xx*, wildcards win32?

2011-08-17 Thread Arne Pagel

Hello,
I am trying to use cmake for a cross platform project.

I want to delete some files using cmake -E remove file*

This works on an linux system, but on an windows system wildcards are not 
working,
I just can delete files using their explicit name. In my case the file names are not known, since 
they have a date coded into it.


Any Idea?

regards
   Arne
___
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