From e34db5d86f0278535584a969639b31e8233ce601 Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 23 Jul 2024 19:29:28 -0400 Subject: [PATCH] watcher-c/build: depends on hpp cp --- watcher-c/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/watcher-c/meson.build b/watcher-c/meson.build index 063851c6..7b09fab1 100644 --- a/watcher-c/meson.build +++ b/watcher-c/meson.build @@ -10,15 +10,16 @@ watcher_hpp = custom_target( output : 'watcher.hpp', install : false, ) +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() if target_machine.system() == 'darwin' - libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation')] + libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation'), watcher_hpp_dep] else - libwatcher_c_deps = [dependency('threads')] + libwatcher_c_deps = [dependency('threads'), watcher_hpp_dep] endif