From 349ed63038fffe8835446a2f5bbea9d090f8ad51 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 24 Oct 2018 15:12:57 +0200 Subject: Use vcs_tag to get version information --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6ceacab..1a8dd11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #ifdef _WIN32 #include #include @@ -93,13 +94,14 @@ int main(int argc, char **argv) // --version if(config->exists("version")) { - std::cout << "smolbote " << poi_Version << std::endl; + auto ver = QVersionNumber::fromString(QLatin1String(poi_Version)); + std::cout << "smolbote " << ver.toString().toStdString() << std::endl; return 0; } // --build if(config->exists("build")) { - std::cout << poi_Build; + std::cout << poi_Version << std::endl; return 0; } -- cgit v1.2.1