сделал сборку с предупреждением, если версия ревизии из гита не определена. привет, Даня!

This commit is contained in:
2025-04-04 11:55:24 +03:00
parent 39cd5e6359
commit f5db46b293
4 changed files with 22 additions and 7 deletions

12
src/version.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef VERSION_H
#define VERSION_H
#ifndef PROJECT_GIT_REVISION
#warning "PROJECT_GIT_REVISION should be defined!"
#define PROJECT_GIT_REVISION "no-git"
#endif
#define PROJECT_BUILD_TIME __TIMESTAMP__ " compiler version " __VERSION__
#endif //VERSION_H