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 <a...@pagelnet.de> 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<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<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<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

Reply via email to