diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-10-07 11:04:13 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-10-07 09:16:18 +0000 |
commit | f55565b77aeec6b166f1656d20094a624f48ea9d (patch) | |
tree | 2f96b5499b79eef7975995981254aa3258d82e9a /util | |
parent | ed35e1ac845cfa1e4f3e46983f0d4c39d9ea0a4f (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-x | util/cmake/pro2cmake.py | 2 |
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 |