Commit graph

6 commits

Author SHA1 Message Date
Tim Felgentreff
6034ff515d fix genversion if not running in git repo 2015-12-08 12:01:52 +01:00
Tim Felgentreff
4fb42250d3 and of course, if not using the m flag on fscanf, we need to pass char*, not char** 2015-12-08 11:45:01 +01:00
Tim Felgentreff
31e8b89a14 forgot allocation 2015-12-08 11:41:11 +01:00
Tim Felgentreff
7c62bfaf95 m modifier isn't supported on Windows fscanf implementation 2015-12-08 11:38:07 +01:00
Tim Felgentreff
5345a4cdeb update genversion to use GitRev 2015-12-08 10:29:13 +01:00
Pali Rohár
a0ff593ed8 Generate version string at compile time from CMakeLists.txt and from bzr revision
* Move StratagusMajorVersion, StratagusMinorVersion, StratagusPatchLevel and StratagusPatchLevel2 to CMakeLists.txt
* Added tool genversion.cpp which (re)generate file version-generated.h from cmake if needed
* Fill VERSION macro from other values with C preprocessor instead hardcoded values
* Remove macros StratagusFormatString and StratagusFormatArgs from code, use only VERSION
2013-02-05 22:16:43 +01:00