stuart23 / cmake-OpenFOAM

Other
20 stars 1 forks source link

Versioning in Global source file #4

Open stuart23 opened 7 years ago

stuart23 commented 7 years ago

File src/OpenFOAM/global/global.C has the following comment:

This file has the extension .Cver to trigger a Makefile rule that converts 'VERSION_STRING' and 'BUILD_STRING' into the appropriate strings.

We need to build the version number into the code somehow

stuart23 commented 7 years ago

Build version MUST be hard coded so that it stays in the git and not just a cmake option. Consider this option: http://brianmilco.blogspot.co.uk/2012/11/cmake-automatically-use-git-tags-as.html