aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-11 16:30:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-11 16:30:00 +0000
commit928b819934f6085a0ee62b21d998474470c0cbdc (patch)
treeefc18a775544dff280a5976438afc1be7dec4ddb
parentMerge branch 'consume-modifiers-for-client-application' (diff)
meson: SOURCE_DIR is not a valid macro in custom_target()
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.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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',