summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py3
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)