[CMake] Regex with character '+'
Brad King
brad.king at kitware.com
Fri Sep 1 10:31:49 EDT 2006
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/._+-]*)")
-Brad
More information about the CMake
mailing list