Brandon J. Van Every wrote:

Alexander Neundorf wrote:

Von: "Brandon J. Van Every" <[EMAIL PROTECTED]>

Alexander Neundorf wrote:
Von: "Brandon J. Van Every" <[EMAIL PROTECTED]>

I would like more direct access to the CMake version number, and the ability to make easy lexical comparisons between version numbers.
Since cmake 2.4.3 you can use CMAKE_PATCH_VERSION. CMAKE_MINOR_VERSION
and CMAKE_MAJOR version existed already before.
Thank you much for this info, Alex.

But, holy [EMAIL PROTECTED] This is infuriating! I chew up my evening reinventing the wheel, because this stuff ISN'T IN THE DOCS, and ISN'T ON THE WIKI "USEFUL VARIABLES" PAGE!

Sorry that I didn't get around to add it there...
But you know, it's a Wiki :-)

They're there now, I added them. Of course, people can't add things they don't know about. Which reminds me: is there a variable that has major.minor.patch all together? i.e. "2.4.3"


Cheers,
Brandon Van Every


Searching the sample data on this page for the string "version" leads you to all the variables of interest:
http://www.cmake.org/Wiki/CMake_Useful_Variables/Get_Variables_From_CMake_Dashboards

What search string would you have used if this were documented?

Anybody who has the time can feel free to use the sample data as a starting point for documenting even more variables on the Wiki...

Even if it's just the five minutes needed to sort out a simple list of them all with "TODO:" or some such as the temporary doc string until someone in the know can fill it in...

Cheers,
David

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to