From 05e44162f57f35ee05fdf99702501f3aca29853e Mon Sep 17 00:00:00 2001 From: "a.stecher" Date: Fri, 13 Sep 2024 11:54:48 +0200 Subject: [PATCH] Changes generated library version from libwatcher-c-0.11.0.so to libwatcher-c.so.0.11.0 --- watcher-c/meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/watcher-c/meson.build b/watcher-c/meson.build index 7b09fab1..4c89b030 100644 --- a/watcher-c/meson.build +++ b/watcher-c/meson.build @@ -12,9 +12,7 @@ watcher_hpp = custom_target( ) watcher_hpp_dep = declare_dependency(sources : watcher_hpp) -# I know it's not the convential way to version a library... -# But I'm not sure how to do it the "right" way in Meson. -libwatcher_c_name = 'watcher-c-' + meson.project_version() +libwatcher_c_name = 'watcher-c' if target_machine.system() == 'darwin' libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation'), watcher_hpp_dep] @@ -31,6 +29,7 @@ libwatcher_c = library( build_rpath : '/usr/local/lib', install_rpath : '/usr/local/lib', install : true, + version : meson.project_version(), ) test_libwatcher_c = executable(