From 7bd06d88d56e66863e9bf4a2a3291a2efacb66ce Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 18 Oct 2016 15:35:00 +0200 Subject: cmake2meson.py: Fix missing quote around options type/name --- authors.txt | 1 + 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) -- cgit v1.1