diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-05-14 17:43:43 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-05-14 15:37:38 +0000 |
commit | 76c636daac9bd2c7d7fb32b6930af2b0d8a6e020 (patch) | |
tree | 95b2a732494bcfc772d639be463e6c4cd584e304 | |
parent | 84cfa2bf5127cff73159e52f8494b9b836ce67e0 (diff) | |
download | meson-76c636daac9bd2c7d7fb32b6930af2b0d8a6e020.zip meson-76c636daac9bd2c7d7fb32b6930af2b0d8a6e020.tar.gz meson-76c636daac9bd2c7d7fb32b6930af2b0d8a6e020.tar.bz2 |
cmake: Fix string substitution index error
```
File "mesonbuild/cmake/interpreter.py", line 293, in postprocess
'Unknown {}_std "{}" -> Ingoring. Try setting the project'
IndexError: Replacement index 2 out of range for positional args tuple
```
-rw-r--r-- | mesonbuild/cmake/interpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 0a452d1..1e033c7 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -292,8 +292,8 @@ class ConverterTarget: std = m.group(2) if std not in self._all_lang_stds(i): mlog.warning( - 'Unknown {}_std "{}" -> Ingoring. Try setting the project' - 'level {}_std if build errors occur.'.format(i, std), + 'Unknown {0}_std "{1}" -> Ignoring. Try setting the project-' + 'level {0}_std if build errors occur.'.format(i, std), once=True ) continue |