Skip to content

Commit

Permalink
Check is optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tklengyel committed Sep 26, 2024
1 parent 2ec9cba commit 5605231
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ glib = dependency('glib-2.0')
libvmi = dependency('libvmi')
jsonc = dependency('json-c')
deps = [glib, libvmi, jsonc]
check = dependency('check')

# Find optional dependencies
check = dependency('check', required : false)

# Set version string
version = meson.project_version()
if not get_option('release')
version += '-' + run_command('git', 'describe', '--always', check: true).stdout().strip()
Expand Down

0 comments on commit 5605231

Please sign in to comment.