Hi Richard,
Date: Sat, 3 Dec 2011 17:07:37 -0600
From: Richard Shaw <hobbes1069(a)gmail.com>
Subject: Regex replace help
To: Development discussions related to Fedora
<devel(a)lists.fedoraproject.org>
Message-ID:
<CAN3TeO0JbsJQYaXvJnxFkrYVtF=MLA-Gcse2YiC+jx3WfUDS6Q(a)mail.gmail.com
>
Content-Type: text/plain; charset=ISO-8859-1
I'm writing my own cmake module for finding TinyXML and I'm trying to
extract the version from the header.
you will find several examples of such CMake Regex in the SOCI (
https://github.com/airsim/stdair/blob/trunk/config/FindSOCI.cmake#L26),
Readline (
https://github.com/airsim/stdair/blob/trunk/config/FindReadline.cmake#L12),
Xapian (
https://github.com/airsim/stdair/blob/trunk/config/FindXapianWrapper.cmak...),
ZeroMQ (
https://github.com/airsim/stdair/blob/trunk/config/FindZeroMQ.cmake#L31)
and Boost () version finders, which I use within my various upstream
projects.
Does it help?
Cheers
Denis