fix build-info.h for git submodules (#1289)

* make git build info work with submodules

---------

Co-authored-by: Green Sky <green@g-s.xyz>
This commit is contained in:
kuvaus 2023-05-03 03:43:43 +03:00 committed by GitHub
parent bf4b22ffe4
commit 9daff419f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 13 deletions

7
scripts/build-info.h.in Normal file
View file

@ -0,0 +1,7 @@
#ifndef BUILD_INFO_H
#define BUILD_INFO_H
#define BUILD_NUMBER @BUILD_NUMBER@
#define BUILD_COMMIT "@BUILD_COMMIT@"
#endif // BUILD_INFO_H