From e038d82cfc5e8239de4db533dd2b8ee0ef3a3c1a Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 18 Jul 2018 15:04:18 +0200 Subject: [PATCH 1/2] link boost statically --- src/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 2c7f713..5b5d9db 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,4 +1,4 @@ - +set(Boost_USE_STATIC_LIBS ON) find_package(Boost 1.62 COMPONENTS date_time REQUIRED) find_package(SQLite3 REQUIRED) From 10b5cab5a4c62a580229af568771c36589464e15 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 18 Jul 2018 15:08:20 +0200 Subject: [PATCH 2/2] new name for db --- src/core/database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index bd0e247..28c6b8f 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -16,9 +16,9 @@ Database::Database() namespace fs = std::filesystem; #if defined(__linux__) - fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2-cpp"; + fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2"; #elif defined(__WIN64) || defined(__WIN32) - fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2-cpp"; + fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2"; #else throw std::runtime_error("Platform not supported."); #endif @@ -30,7 +30,7 @@ Database::Database() throw err; } } - dbpath /= "kima2.db"; + dbpath /= "kima2-cpp.db"; dbname_ = dbpath.string(); init(); }