Hi Brandon,
I think you can use this trick to work around your issue:
http://www.cmake.org/pipermail/cmake/2007-May/014317.html
STRING(REGEX REPLACE \r?\n ; ENT ${input})
FOREACH(line ${ENT})
# do the match on each line
HTH
-Mathieu
On 7/21/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On 7/22/07, Mathieu Malaterre [EMAIL PROTECTED] wrote:
Hi Brandon,
I think you can use this trick to work around your issue:
http://www.cmake.org/pipermail/cmake/2007-May/014317.html
STRING(REGEX REPLACE \r?\n ; ENT ${input})
FOREACH(line ${ENT})
# do the match on each line
Thanks
I filed this as bug #5380. Repeating it here in case anyone looks
through the archives for a solution to this problem.
http://cmake.org/Bug/bug.php?op=showbugid=5380pos=17
# ^ and $ appear to be non-functional in practice. This makes it
# impossible to code a non-trivial regex in CMake script.