[CMake] Regex with character '+'
Xavier Larrode
Xavier.Larrode at irisa.fr
Fri Sep 1 10:59:24 EDT 2006
Brad King a écrit :
> Xavier Larrode wrote:
>
>> Hi all,
>> i have a regex like this :
>> SET(GTKMM_LIBDIR_EXTRACT_REGEX "[-][l]([a-zA-Z0-9/._-]*)")
>> And gtmm is using the lib sigc++-2.0
>> So i need to add to my regex the character + .
>> i tried with \+ ; \\+ '+' but nothing work ...
>>
>
> Make sure the "-" is still the last character in the brackets so that
> the regex doesn't think you are specifying a range.
>
> SET(GTKMM_LIBDIR_EXTRACT_REGEX "[-][l]([a-zA-Z0-9/._+-]*)")
>
>
Ok thanks it works.
So now i have
a [FindGTKMM, FindOpenMASK, FindAReVi, FindXML2, FindGLADE2].cmake , but
only for linux ...
It's not perfect, as it should use a template name ( but i don"t know
how to do it) but it works.
if anyone need one of them...
> -Brad
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xavier.Larrode.vcf
Type: text/x-vcard
Size: 169 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060901/3e001087/Xavier.Larrode.vcf
More information about the CMake
mailing list