summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2024-04-23 15:41:52 -0400
committerMatt Turner <mattst88@gmail.com>2024-04-23 15:47:49 -0400
commit4cc8bc468a2496295c59fae770829984507ea684 (patch)
treefab478135a1565a423d31444713964fda6d75447
parent67a820621b1475ebfcf3d4f9d7f03a5fc3b9769a (diff)
meson: Set project version
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--meson.build11
1 files changed, 7 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index e9f5bf4..15a065c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,8 @@
-project('rendercheck', 'c')
-project_version = '1.5'
+project(
+ 'rendercheck',
+ 'c',
+ version : '1.5',
+)
cc = meson.get_compiler('c')
if cc.has_header('err.h')
@@ -29,7 +32,7 @@ srcs = [
]
version_config = configuration_data()
-version_config.set_quoted('VERSION', project_version)
+version_config.set_quoted('VERSION', meson.project_version())
configure_file(
output: 'version.h',
@@ -49,7 +52,7 @@ executable(
)
man_config = configuration_data()
-man_config.set('version', project_version)
+man_config.set('version', meson.project_version())
rendercheck_man = configure_file(
input: 'man/rendercheck.man',
output: 'rendercheck.1',