Remove ../ from Targets

Remove repeating '../' pattern from target names, since we generate
the targets in the correct location with CMake.

Change-Id: I89d527a9ad717f742f8d0e5921f378e6ac0a229d
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Leander Beernaert 2019-08-26 10:52:17 +02:00
parent 4260b1edc5
commit 060784c981

View File

@ -796,8 +796,10 @@ class Scope(object):
@property
def TARGET(self) -> str:
return self.expandString('TARGET') \
target = self.expandString('TARGET') \
or os.path.splitext(os.path.basename(self.file))[0]
return re.sub('\.\./', '', target)
@property
def _INCLUDED(self) -> typing.List[str]:
return self.get('_INCLUDED')