[CMake] Globbing expression
Marcel Loose
loose at astron.nl
Mon Jul 13 04:58:51 EDT 2009
Hi Arnaud,
Your mixing globbing with regular expressions. AFAIK it is not possible
to do this with one statement. I would just glob for all *.so files and
then use string(REGEX REPLACE ...) to replace occurrences of '^libA.*
\.so' with an empty string.
Best regards,
Marcel Loose.
On Mon, 2009-07-13 at 10:43 +0200, Arnaud Devalkeneer wrote:
> Hello everybody,
>
> I would like to know if there exists a way to find all files in a
> directory with a custom file extension (e.g. *.so) except files
> beginning by a
> custom string (here libA). For example I am using the line :
>
> FILE( GLOB RESULT path/[^libA]*.so )
>
> but the RESULT variable remains empty. Of cource I am sure of *.so
> files existance in the path.
>
> Has anybody already tried to glob files in a directory, excluding some
> file name patterns?
> Thank you in advance for your help.
>
> Enjoy Cmake,
> Arnaud.
>
> _______________________________________________
> 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
More information about the CMake
mailing list