summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-05-14 17:43:43 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-05-14 17:43:43 +0530
commite3ea3d6999b617e09c1c55a65bdddf2e583464bd (patch)
tree95b2a732494bcfc772d639be463e6c4cd584e304
parent84cfa2bf5127cff73159e52f8494b9b836ce67e0 (diff)
downloadmeson-nirbheek/cmake-fix-typo.tar.gz
cmake: Fix string substitution index errornirbheek/cmake-fix-typo
``` 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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py
index 0a452d148..1e033c76b 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