aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-14 11:33:32 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-14 11:33:42 +0200
commit77d7e6a764011a3b6dc13afbf7b26be39cb56dbd (patch)
treea9e0a8d28a3a81a44d94be920494e2e7f0427770 /src/main.cpp
parentunstable: KWallet integration (diff)
downloadsmolbote-77d7e6a764011a3b6dc13afbf7b26be39cb56dbd.tar.xz
Update CMakeLists option names
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e0ba7eb..5eb32fe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -9,7 +9,7 @@
#include "browser.h"
#include "session.h"
#include "util.h"
-#include "version.h"
+#include <version.h>
#include <QFile>
#include <QLibraryInfo>
#include <QTranslator>
@@ -47,7 +47,7 @@ static bool dumpCallback(const google_breakpad::MinidumpDescriptor &descriptor,
pid_t pid = fork();
if(pid == 0) {
char buffer[256];
- snprintf(buffer, 256, "%s %s %s", ctx->handler, SMOLBOTE_BUILD, descriptor.path());
+ snprintf(buffer, 256, "%s %s %s", ctx->handler, poi_Build, descriptor.path());
execlp("/bin/sh", "/bin/sh", "-c", buffer, (char *)nullptr);
}
}
@@ -93,13 +93,13 @@ int main(int argc, char **argv)
// --version
if(config->exists("version")) {
- std::cout << "smolbote " << SMOLBOTE_VERSION << std::endl;
+ std::cout << "smolbote " << poi_Version << std::endl;
return 0;
}
// --build
if(config->exists("build")) {
- std::cout << SMOLBOTE_BUILD;
+ std::cout << poi_Build;
return 0;
}
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
}
if(config->exists("help")) {
- std::cout << "smolbote " << SMOLBOTE_VERSION << ": yet another no-frills browser" << std::endl;
+ std::cout << "smolbote " << poi_Version << ": yet another no-frills browser" << std::endl;
std::cout << "Usage: " << argv[0] << " [options] [command/URL(s)]" << std::endl
<< std::endl;