aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGautier Pelloux-Prayer <gautier+git@damsy.net>2016-10-18 15:35:00 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-10-18 22:52:43 +0300
commit7bd06d88d56e66863e9bf4a2a3291a2efacb66ce (patch)
tree81602e6bae365bd2a121d195493c7399b44c178f /tools
parent08aeac22a98eb17b3857e1885ae8c4b0b47dfeca (diff)
downloadmeson-7bd06d88d56e66863e9bf4a2a3291a2efacb66ce.zip
meson-7bd06d88d56e66863e9bf4a2a3291a2efacb66ce.tar.gz
meson-7bd06d88d56e66863e9bf4a2a3291a2efacb66ce.tar.bz2
cmake2meson.py: Fix missing quote around options type/name
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cmake2meson.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py
index 7465d45..a99ea50 100755
--- a/tools/cmake2meson.py
+++ b/tools/cmake2meson.py
@@ -279,15 +279,15 @@ class Converter:
defaultstr = ''
else:
if default == 'OFF':
- typestr = ' type : boolean,'
+ typestr = ' type : \'boolean\','
default = 'false'
elif default == 'ON':
default = 'true'
- typestr = ' type : boolean,'
+ typestr = ' type : \'boolean\','
else:
- typestr = ' type : string,'
+ typestr = ' type : \'string\','
defaultstr = ' value : %s,' % default
- line = "option(%s,%s%s description : '%s')\n" % (optname,
+ line = "option(%r,%s%s description : '%s')\n" % (optname,
typestr,
defaultstr,
description)