diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-28 15:23:34 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-29 14:28:51 +0000 |
commit | b9a3217c41560ee4a296797a394620761ca3a471 (patch) | |
tree | e3990dce09360e318ca757214d72dae3776ad6de /util | |
parent | 6a834a0c595b70d888724610e6d4ad05826e7117 (diff) |
CMake: pro2cmake.py: Handle $$PWD better
Change-Id: I2e28b652c60d3490138ae0548b32d010faccc5a4
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Diffstat (limited to 'util')
-rwxr-xr-x | util/cmake/pro2cmake.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 66edf5bd19..900914eab3 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -550,6 +550,9 @@ class Scope(object): return [result] def expand(self, key: str) -> typing.List[str]: + if key == 'PWD': + return os.path.relpath(self.currentdir, self.basedir) + value = self.get(key, []) result: typing.List[str] = [] assert isinstance(value, list) |