internal: improve version query and define HYPRLAND_VERSION (#8034)

This commit is contained in:
Toni500github 2024-10-11 13:19:16 +02:00 committed by GitHub
parent 178a300eea
commit 7564b26b7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 39 deletions

View file

@ -21,6 +21,7 @@ add_project_arguments(
'-Wno-missing-field-initializers',
'-Wno-narrowing',
'-Wno-pointer-arith', datarootdir,
'-DHYPRLAND_VERSION="' + meson.project_version() + '"',
],
language: 'cpp',
)