Commit graph

11 commits

Author SHA1 Message Date
Tim Felgentreff
08c93416c0 expand version.h with last modified times 2020-11-23 10:02:08 +01:00
Tim Felgentreff
301c6dfc93 fix oob write in genversion 2020-11-09 10:46:47 +01:00
Tim Felgentreff
a7649ad71d try fix genversion for appveyir 2020-07-04 22:06:51 +02:00
Tim Felgentreff
98342dd0e0 fix genversion 2020-07-04 21:39:51 +02:00
Tim Felgentreff
f38702ee81 Update genversion tool to avoid recreating file 2020-07-01 10:12:41 +02:00
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