On 5 September 2013 10:21, Renato Golin <renato.go...@linaro.org> wrote:
> While searching for a version number comparison, I found a few custom
> solutions[1][2], but nothing official. Is there a canonical way of saying:
>
> IF (LIBXML2_VERSION GREATER_EQUAL 2.8.0)
>   do_something...
> END
>
> If not, which is the custom solution I should use?
>
> Thanks!
> --renato
>
> [1] http://www.cmake.org/Wiki/CMakeCompareVersionStrings
> [2]
> http://article.gmane.org/gmane.comp.programming.tools.cmake.user/8533/match=version+comparison

Hit the official manual, Luke! ;-)
http://cmake.org/cmake/help/v2.8.11/cmake.html#command:if

Best regards,
-- 
Mateusz  Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to