[cmake-developers] RFC: add version to project() call

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Mon Jan 13 07:36:03 EST 2014


On 10/01/14 21:19, Alexander Neundorf wrote:
> Should the full version "1.2.3" be put into PROJECT_VERSION or 
> PROJECT_VERSION_STRING ?
> Both forms are used in different places in cmake.

I usually consider PROJECT_VERSION = Major.Minor.Patch and
PROJECT_VERSION_STRING as a customizable string that can be assigned by
the developer (i.e. PROJECT_VERSION "1.9.90" could be
PROJECT_VERSION_STRING "2.0 Beta 1"), therefore I'd say PROJECT_VERSION


Maybe the signature could even be

  project(Foo VERSION 1.9.90 VERSION_STRING "2.0 Beta 1")

with "VERSION_STRING" defaulting to "VERSION"



Cheers,
 Daniele


More information about the cmake-developers mailing list