[CMake] Manual version vs CMake version

Eric Noulard eric.noulard at gmail.com
Fri Feb 5 15:59:46 EST 2010


2010/2/5 Mateusz Loskot <mateusz at loskot.net>:
> Hi,
>
> Perhaps it will be helpful information for someone.
> On popular Linux distributions CMake 2.6 may not be necessarily the same
> CMake 2.6 as documented [1] on the website.
>
> CMake from Ubuntu 9.10  reports "cmake version 2.6-patch 4"
> CMake from Debian 5.0.3 reports "cmake version 2.6-patch 0"
>
> It's a micro-difference but may be significant, because on Debian,
> for instance, VERSION_LESS or VERSION_GREATER are not available.
>
> I understand it's probably a Debian problem, but users may be confused
> while trying to refer to CMake 2.6 documentation.
>
> [1] http://cmake.org/cmake/help/cmake2.6docs.html

That's true, may be the site could indicate that the doc is for latest
2.6.x serie.
However the most trustfull way to check the doc of your current cmake
version is the command line.

cmake --help-command if

should give you the doc for the cmake version you are using.

if you want html you can use:

cmake --help-html > cmake-doc.html

then browse the cmake-doc.html file.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list