aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGeorg Müller <georgmueller@gmx.net>2017-09-14 10:23:54 +0200
committerGeorg Müller <georgmueller@gmx.net>2017-09-14 10:23:54 +0200
commit4cbca499760269b02d4f306b0558afec031592d0 (patch)
tree1fc00e1ffcf920e2faee0ad32e8d8fc28c849344 /tools
parent567b51ac713610fa03d444139b5c8108ba5c5c31 (diff)
downloadmeson-4cbca499760269b02d4f306b0558afec031592d0.zip
meson-4cbca499760269b02d4f306b0558afec031592d0.tar.gz
meson-4cbca499760269b02d4f306b0558afec031592d0.tar.bz2
cmake2meson: convert varexp to lowercase
since variable names in 'set' statements are converted to lowercase, the variable itself should be converted to lower-case too when used.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cmake2meson.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py
index 157a7c9..5fe433c 100755
--- a/tools/cmake2meson.py
+++ b/tools/cmake2meson.py
@@ -158,7 +158,7 @@ class Converter:
if i.tid == 'id':
res.append("'%s'" % i.value)
elif i.tid == 'varexp':
- res.append('%s' % i.value)
+ res.append('%s' % i.value.lower())
elif i.tid == 'string':
res.append("'%s'" % i.value)
else: