mirror of https://github.com/cutefishos/calamares
[calamares] Try to reduce compile-churn with version header
- Very rarely do we need the full-git-version of Calamares, so split that into a separate header with a little trickery. - In the "normal" version header, drop the full-git-version values.main
parent
b06498194e
commit
9568fc082f
@ -0,0 +1,13 @@
|
||||
// Same as CalamaresVersion.h, but with a full-git-extended VERSION
|
||||
// rather than the short (vM.m.p) semantic version.
|
||||
#ifndef CALAMARES_VERSION_H
|
||||
|
||||
// On purpose, do not define the guard, but let CalamaresVersion.h do it
|
||||
// #define CALAMARES_VERSION_H
|
||||
|
||||
#include "CalamaresVersion.h"
|
||||
|
||||
#undef CALAMARES_VERSION
|
||||
#cmakedefine CALAMARES_VERSION "${CALAMARES_VERSION}"
|
||||
|
||||
#endif // CALAMARES_VERSION_H
|
Loading…
Reference in New Issue