cmake: fix detecting directories as input files (fixes #10244)
This commit is contained in:
parent
7ef73e8f6a
commit
ac31eb49d6
|
@ -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()]
|
||||
|
|
Loading…
Reference in New Issue