From 928b819934f6085a0ee62b21d998474470c0cbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 11 Mar 2021 17:30:00 +0100 Subject: [PATCH] meson: SOURCE_DIR is not a valid macro in custom_target() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit But appears to have been allowed in older versions of meson. Fixes an issue where foot’s version was always reported as the last stable release, even though it was a git build. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5783731a..23bcc683 100644 --- a/meson.build +++ b/meson.build @@ -112,7 +112,7 @@ version = custom_target( 'generate_version', build_always_stale: true, output: 'version.h', - command: [generate_version_sh, meson.project_version(), '@SOURCE_DIR@', '@OUTPUT@']) + command: [generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@']) misc = static_library( 'misc',