diff --git a/core/site_scons/tools.py b/core/site_scons/tools.py index 97a4b71cb1..728b0bccfb 100644 --- a/core/site_scons/tools.py +++ b/core/site_scons/tools.py @@ -53,7 +53,7 @@ def get_defs_for_cmake(defs: list[str | tuple[str, str]]) -> list[str]: for d in defs: if type(d) is tuple: val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)") - result.append(d[0] + '="' + val + '"') + result.append(f'{d[0]}="{val}"') else: result.append(d) return result