On Sun, Dec 4, 2011 at 9:20 AM, Haïkel Guémar wrote:
> AFAIK, CMake does not have multi-line regex, so it doesn't work. If you
> find a better trick, please share it :-]
Denis's email client replied to the list and me and I didn't catch
that gmail only replied to him directly so there was a bit o
Le dim. 04 déc. 2011 15:01:16 CET, Richard Shaw a écrit :
>
> I think I see what you're doing here, but shouldn't a direct replace work?
>
> Thanks,
> Richard
AFAIK, CMake does not have multi-line regex, so it doesn't work. If you
find a better trick, please share it :-]
H.
--
devel mailing li
Hi Richard,
Date: Sat, 3 Dec 2011 17:07:37 -0600
> From: Richard Shaw
> Subject: Regex replace help
> To: Development discussions related to Fedora
>
> Message-ID:
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> I'm writing my own cmake
2011/12/3 Miloslav Trmač :
> On Sun, Dec 4, 2011 at 12:07 AM, Richard Shaw wrote:
>> $ echo "const int TIXML_MAJOR_VERSION = 2;" | sed 's/const int
>> TIXML_MAJOR_VERSION = \([0-9]+\).*/\1/'
>> const int TIXML_MAJOR_VERSION = 2;
>> By replacing (sed 's/../../') with (sed -n 's/../../p') you can se
Le 04/12/2011 00:07, Richard Shaw a écrit :
> I'm writing my own cmake module for finding TinyXML and I'm trying to
> extract the version from the header.
>
> For some reason it's matching the whole file no matter what I do. I've
> looked through several of the cmake modules in
> /usr/share/cmake/M
On 12/04/2011 04:00 AM, Miloslav Trmač wrote:
> On Sun, Dec 4, 2011 at 12:07 AM, Richard Shaw wrote:
>> $ echo "const int TIXML_MAJOR_VERSION = 2;" | sed 's/const int
>> TIXML_MAJOR_VERSION = \([0-9]+\).*/\1/'
>> const int TIXML_MAJOR_VERSION = 2;
>
> By replacing (sed 's/../../') with (sed -n 's
I'm writing my own cmake module for finding TinyXML and I'm trying to
extract the version from the header.
For some reason it's matching the whole file no matter what I do. I've
looked through several of the cmake modules in
/usr/share/cmake/Modules and don't see what I'm doing that's so
different
On Sun, Dec 4, 2011 at 12:07 AM, Richard Shaw wrote:
> $ echo "const int TIXML_MAJOR_VERSION = 2;" | sed 's/const int
> TIXML_MAJOR_VERSION = \([0-9]+\).*/\1/'
> const int TIXML_MAJOR_VERSION = 2;
By replacing (sed 's/../../') with (sed -n 's/../../p') you can see
that the regex doesn't match. T