<div dir="ltr">Thanks! That answers my question. ;)<div><br></div><div>--renato</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 September 2013 10:26, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/9/5 Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>>:<br>
<div class="im">> While searching for a version number comparison, I found a few custom<br>
> solutions[1][2], but nothing official. Is there a canonical way of saying:<br>
><br>
> IF (LIBXML2_VERSION GREATER_EQUAL 2.8.0)<br>
> do_something...<br>
> END<br>
><br>
> If not, which is the custom solution I should use?<br>
<br>
</div>Yes there is the VERSION_xxxx comparison operator:<br>
see<br>
<br>
cmake --help-command if<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Erk<br>
L'élection n'est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></span></blockquote></div><br></div>