add version from git

This commit is contained in:
chatlanin 2024-07-18 10:42:44 +03:00
parent 49661fdea6
commit 8989cecf42
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
project(
meson.current_source_dir().split('/').get(-1),
'cpp',
version : '1.0.0',
version : run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip(),
default_options : [
'warning_level=1',
'optimization=3',

View File

@ -5,7 +5,7 @@
auto main(int argc, char* args[]) -> int
{
const std::string con = "";
const std::string con = "postgres://chatlanin:password_for_connection_to_test_db@localhost:5423/test.db?sslmode=disable";
try
{