Fix pro2cmake.py path replacement
I forgot to add .items() in ed35e1ac84
.
Change-Id: Ic46134daffa8f1a1b5b59040c8bcca76d32dbb35
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
ed35e1ac84
commit
f55565b77a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user