FindLibLZMA.cmake

Alexander Neundorf neundorf at kde.org
Mon May 7 18:57:34 UTC 2012


On Monday 07 May 2012, Mario Bensi wrote:
> Hi
> 
> I try to add the version control in FindLibLZMA.cmake (Rolf Eike Beer ask
> me about this)
> 
> The version is correctly parse and find_package return the good version but
> there is no error when i test with a wrong version and i don't find the
> mistake in FindLibLZMA.cmake

(without checking) I think the STRING(REGEX REPLACE...) just give you the 
whole string if they don't match.
So, does putting something like
if("${LIBLZMA_HEADER_CONTENTS}" MATCHES "[0-9]+\.[0-9]+\.[0-9]+")
 ...
around the string(REGEX REPLACE ...) help ?

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20120507/f4b4809f/attachment.html>


More information about the Kde-buildsystem mailing list