diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-05-29 16:57:25 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-05-29 17:31:19 +0200 |
commit | f0812baf8d1c746a4b5b7d8661a4e3d13af577b7 (patch) | |
tree | 0558f150e50f8f3a8fc7a3e40a2f156bb57627e7 /mesonbuild/cmake | |
parent | 06f528a5b7a42eadf84961414087117deb2365aa (diff) | |
download | meson-f0812baf8d1c746a4b5b7d8661a4e3d13af577b7.zip meson-f0812baf8d1c746a4b5b7d8661a4e3d13af577b7.tar.gz meson-f0812baf8d1c746a4b5b7d8661a4e3d13af577b7.tar.bz2 |
cmake: exclude generated files from the buildsystem files list
Diffstat (limited to 'mesonbuild/cmake')
-rw-r--r-- | mesonbuild/cmake/interpreter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 513df60..26fc635 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -953,6 +953,7 @@ class CMakeInterpreter: cmake_files = self.fileapi.get_cmake_sources() self.bs_files = [x.file for x in cmake_files if not x.is_cmake and not x.is_temp] self.bs_files = [relative_to_if_possible(x, Path(self.env.get_source_dir())) for x in self.bs_files] + self.bs_files = [x for x in self.bs_files if not path_is_in_root(x, Path(self.env.get_build_dir()), resolve=True)] self.bs_files = list(OrderedSet(self.bs_files)) # Load the codemodel configurations @@ -980,6 +981,7 @@ class CMakeInterpreter: src_dir = bs_reply.src_dir self.bs_files = [x.file for x in bs_reply.build_files if not x.is_cmake and not x.is_temp] self.bs_files = [relative_to_if_possible(src_dir / x, Path(self.env.get_source_dir()), resolve=True) for x in self.bs_files] + self.bs_files = [x for x in self.bs_files if not path_is_in_root(x, Path(self.env.get_build_dir()), resolve=True)] self.bs_files = list(OrderedSet(self.bs_files)) self.codemodel_configs = cm_reply.configs |