From f84336a9b7706a3730a824a525cb52499a587839 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Tue, 16 Oct 2018 10:29:52 +0100 Subject: [PATCH] Set COMPTON_VERSION --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 83be0b5..3b3c471 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,10 @@ project('compton', 'c') cc = meson.get_compiler('c') +version = run_command('git', 'describe').stdout().strip() + add_global_arguments('-std=c11', language: 'c') +add_global_arguments('-DCOMPTON_VERSION="'+version+'"', language: 'c') if get_option('buildtype') == 'release' add_global_arguments('-DNDEBUG', language: 'c')