aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2022-04-23 13:56:24 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-05-24 18:00:49 -0400
commitac31eb49d6da60c3c13b3f63d9e8638369a3986e (patch)
treedcc3534700bf8a088c5ffe108395566a9c4dcb59
parent7ef73e8f6a2555ffcbf6c10db4085236a64514a5 (diff)
downloadmeson-ac31eb49d6da60c3c13b3f63d9e8638369a3986e.zip
meson-ac31eb49d6da60c3c13b3f63d9e8638369a3986e.tar.gz
meson-ac31eb49d6da60c3c13b3f63d9e8638369a3986e.tar.bz2
cmake: fix detecting directories as input files (fixes #10244)
-rw-r--r--mesonbuild/cmake/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py
index bbb0ce4..8706bb4 100644
--- a/mesonbuild/cmake/interpreter.py
+++ b/mesonbuild/cmake/interpreter.py
@@ -714,7 +714,7 @@ class ConverterCustomTarget:
# targets, etc. This reduces the chance of misdetecting input files
# as outputs from other targets.
# See https://github.com/mesonbuild/meson/issues/6632
- if not raw.is_absolute() and (self.current_src_dir / raw).exists():
+ if not raw.is_absolute() and (self.current_src_dir / raw).is_file():
self.inputs += [(self.current_src_dir / raw).relative_to(root_src_dir).as_posix()]
elif raw.is_absolute() and raw.exists() and rel_to_root is not None:
self.inputs += [rel_to_root.as_posix()]