aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/interpreter.py
diff options
context:
space:
mode:
authorSebastian Würl <s.wuerl@mailbox.org>2020-08-30 20:09:19 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-08-30 23:53:00 +0200
commitfb42db88833ee6804197a45260631f5af47338d4 (patch)
tree1e8781f9bf1f5d6bac895bfe80cdcb22d13851de /mesonbuild/cmake/interpreter.py
parent8e004afc90ee82c7e51817d8a7046a894eb90485 (diff)
downloadmeson-fb42db88833ee6804197a45260631f5af47338d4.zip
meson-fb42db88833ee6804197a45260631f5af47338d4.tar.gz
meson-fb42db88833ee6804197a45260631f5af47338d4.tar.bz2
CMake module: fix python 3.6 compatibility in path generation
Diffstat (limited to 'mesonbuild/cmake/interpreter.py')
-rw-r--r--mesonbuild/cmake/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py
index 8a7122d..19441f9 100644
--- a/mesonbuild/cmake/interpreter.py
+++ b/mesonbuild/cmake/interpreter.py
@@ -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)