mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-23 16:22:58 +03:00
b534c2bec0
Version is now generated automatically based on git tags. Both cases are handled: building from git tree and building tarball downloaded from github. Works for qmake and cmake
10 lines
265 B
C
10 lines
265 B
C
#pragma once
|
|
|
|
// git will put "#define GIT_ARCHIVE 1" on the next line inside archives. $Format:%n#define GIT_ARCHIVE 1$
|
|
|
|
#ifdef GIT_ARCHIVE
|
|
#define LIMEREPORT_VERSION_STR "$Format:%(describe:tags=true)$"
|
|
#else
|
|
#define LIMEREPORT_VERSION_STR "@GIT_VERSION@"
|
|
#endif
|