38b347f8f2
- The sources were in src/calamares but processed and generated in libcalamares, which is weird at best. - Generate an "extended" version header. - Use the extended version in the logger and nowhere else. - While here, minor coding style cleanups The overall change here means that after running CMake, only Logger.cpp needs to be rebuilt (if the extended version has changed) and not a handful of other files that don't need the full version number, but do happen to include CalamaresVersion.h
14 lines
396 B
C
14 lines
396 B
C
// 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
|