Re: [CMake] Version Check

2013-09-05 Thread Mateusz Loskot
On 5 September 2013 10:21, Renato Golin 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

Re: [CMake] Version Check

2013-09-05 Thread Renato Golin
Thanks! That answers my question. ;) --renato On 5 September 2013 10:26, Eric Noulard wrote: > 2013/9/5 Renato Golin : > > 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_

Re: [CMake] Version Check

2013-09-05 Thread Rolf Eike Beer
Am 05.09.2013 11:21, schrieb Renato Golin: 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 sho

Re: [CMake] Version Check

2013-09-05 Thread Eric Noulard
2013/9/5 Renato Golin : > 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?

[CMake] Version Check

2013-09-05 Thread Renato Golin
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.cmak

[CMake] CMake version check 2.7 versus 2.6.4

2009-05-11 Thread John Drescher
After trying to go back to the released version of cmake versus the nightly builds I am getting errors like this: CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeImportBuildSettings.cmake:14 (MESSAGE): ITK was built using CMake 2.7, but this is CMake2.6. Please upgrade CM