diff options
-rw-r--r-- | authors.txt | 1 | ||||
-rwxr-xr-x | tools/cmake2meson.py | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/authors.txt b/authors.txt index 505e35e..a51badd 100644 --- a/authors.txt +++ b/authors.txt @@ -49,3 +49,4 @@ Franz Zapata Emanuele Aina Guillaume Poirier-Morency Scott D Phillips +Gautier Pelloux-Prayer 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) |