Update version template.

This commit is contained in:
tastytea 2019-12-20 01:12:14 +01:00
parent 8870c37a42
commit e8b0e83bc8
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 10 additions and 6 deletions

View File

@ -1,9 +1,13 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#ifndef MASTORSS_VERSION_HPP
#define MASTORSS_VERSION_HPP
namespace global
#include <string_view>
namespace mastorss
{
static constexpr char version[] = "@PROJECT_VERSION@";
}
using std::string_view;
#endif // VERSION_HPP
static constexpr string_view version = "@PROJECT_VERSION@";
} // namespace mastorss
#endif // MASTORSS_VERSION_HPP