Skip to content

Commit

Permalink
Only enable check if meson is at least 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tklengyel committed Sep 29, 2024
1 parent 4989c48 commit 5dfb342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jsonc = dependency('json-c')
deps = [glib, libvmi, jsonc]

# Find optional dependencies
check = dependency('check', required : false)
if meson.version().version_compare('>=1.1.0')
check = dependency('check', required : false)
endif

# Set version string
version = meson.project_version()
Expand Down

0 comments on commit 5dfb342

Please sign in to comment.