Base: Auto-inject copyright year

This commit is contained in:
Chris Hennes
2026-01-26 09:44:57 +01:00
parent f0280bffad
commit 4db0eaf171
5 changed files with 20 additions and 7 deletions

View File

@@ -33,6 +33,8 @@
# include <config.h>
#endif // HAVE_CONFIG_H
#include <Build/Version.h> // For FCCopyrightYear
#include <cstdio>
#include <map>
#include <stdexcept>
@@ -52,9 +54,11 @@
void PrintInitHelp();
const char sBanner[]
= "(C) 2001-2026 FreeCAD contributors\n"
"FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.\n\n";
const auto sBanner = fmt::format(
"(C) 2001-{} FreeCAD contributors\n"
"FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.\n\n",
FCCopyrightYear
);
#if defined(_MSC_VER)
void InitMiniDumpWriter(const std::string&);