сделал сборку с предупреждением, если версия ревизии из гита не определена. привет, Даня!
This commit is contained in:
12
src/version.h
Normal file
12
src/version.h
Normal 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
|
Reference in New Issue
Block a user