summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/VersionTest.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* Add additional <= and >= comparison operatorsChuck Atkins2016-08-091-0/+14
| | | | | This adds the LESS_EQUAL, GREATER_EQUAL, and associated STR and VERSION equivalents to use the combined <= and >= functionality.
* cmSystemTools: reimplement verson comparison without sscanf()Rolf Eike Beer2014-10-311-0/+2
| | | | | This now has the advantage that it works with version strings with any number of components.
* extend the testing for version comparisonRolf Eike Beer2014-10-291-6/+80
| | | | | This now checks also the negative outcome of the comparision operation, and adds a bunch more different cases.
* if: Compare up to 8 components in VERSION testsBrad King2012-09-111-0/+7
| | | | | | | | | | Extend the number of components tested by if(... VERSION_LESS ...) if(... VERSION_EQUAL ...) if(... VERSION_GREATER ...) from 4 to 8. The latter is a more extreme maximum.
* ENH: Overhaul CMake version numberingBrad King2009-03-051-0/+9
This moves the version numbers into an isolated configured header so that not all of CMake needs to rebuild when the version changes. Previously we had spaces, dashes and/or the word 'patch' randomly chosen before the patch number. Now we always report version numbers in the traditional format "<major>.<minor>.<patch>[-rc<rc>]". We still use odd minor numbers for development versions. Now we also use the CCYYMMDD date as the patch number of development versions, thus allowing tests for exact CMake versions.