CMake: pro2cmake.py: Handle $$PWD better

Change-Id: I2e28b652c60d3490138ae0548b32d010faccc5a4
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
This commit is contained in:
Tobias Hunger 2019-03-28 15:23:34 +01:00
parent 6a834a0c59
commit b9a3217c41

View File

@ -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)