CMake module: fix python 3.6 compatibility in path generation

This commit is contained in:
Sebastian Würl 2020-08-30 20:09:19 +02:00 committed by Daniel Mensinger
parent 8e004afc90
commit fb42db8883
1 changed files with 2 additions and 2 deletions

View File

@ -433,8 +433,8 @@ class ConverterTarget:
x = os.path.normpath(os.path.join(self.src_dir, x))
if not os.path.exists(x) and not any([x.endswith(y) for y in obj_suffixes]) and not is_generated:
if (
any([os.path.commonpath([x, y]) == x for y in self.generated])
and os.path.isabs(x)
os.path.isabs(x)
and any([(os.path.isabs(y) and os.path.commonpath([x, y]) == x) for y in self.generated])
and os.path.commonpath([x, self.env.get_build_dir()]) == self.env.get_build_dir()
):
os.makedirs(x)