summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-03-18 09:58:35 +0100
committerMax Kellermann <max@musicpd.org>2019-03-18 09:58:40 +0100
commite22bdee8085c902b83b2a32d108b615f89f69522 (patch)
treedb412a0919d57674db6f3f847999c9a8ffc0702b /win32
parent7f87de783fb5107048f1d7b98278156c00b2f144 (diff)
win32/res/meson.build: drop tilde suffix from version number before splitting
MPD sometimes uses version numbers like "0.22~git" to mark unreleased versions. That makes the win32 resource compiler unhappy, because it expects numbers only.
Diffstat (limited to 'win32')
-rw-r--r--win32/res/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/res/meson.build b/win32/res/meson.build
index 4a9e536c4..ba021af5f 100644
--- a/win32/res/meson.build
+++ b/win32/res/meson.build
@@ -1,7 +1,7 @@
windows_conf = configuration_data()
windows_conf.set('VERSION', meson.project_version())
-splitted_version = meson.project_version().split('.')
+splitted_version = meson.project_version().split('~')[0].split('.')
windows_conf.set('VERSION_MAJOR', splitted_version[0])
windows_conf.set('VERSION_MINOR', splitted_version.get(1, '0'))
windows_conf.set('VERSION_REVISION', splitted_version.get(2, '0'))