summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-07 11:04:13 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-07 09:16:18 +0000
commitf55565b77aeec6b166f1656d20094a624f48ea9d (patch)
tree2f96b5499b79eef7975995981254aa3258d82e9a /util
parented35e1ac845cfa1e4f3e46983f0d4c39d9ea0a4f (diff)
Fix pro2cmake.py path replacement
I forgot to add .items() in ed35e1ac845cfa1e4f3e46983f0d4c39d9ea0a4f. Change-Id: Ic46134daffa8f1a1b5b59040c8bcca76d32dbb35 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 91b60f710d..7698876553 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1604,7 +1604,7 @@ def replace_path_constants(path: str, scope: Scope) -> str:
path = f"${{CMAKE_CURRENT_BINARY_DIR}}/{path[2:]}"
elif path.startswith("../"):
path = f"${{CMAKE_CURRENT_BINARY_DIR}}/{path}"
- for original, replacement in _path_replacements:
+ for original, replacement in _path_replacements.items():
path = path.replace(original, replacement)
path = path.replace("$$TARGET", scope.TARGET)
return path