Kate: don't include files in the CMakeFiles/ dir in the project

These files are generated by cmake, they shouldn't be in the project.
This commit is contained in:
Alexander Neundorf
2023-02-13 22:34:53 +01:00
parent 78299083d2
commit 8802b81b0d

View File

@@ -282,9 +282,8 @@ std::string cmExtraKateGenerator::GenerateFilesString(
cmMakefile* makefile = lgen->GetMakefile();
const std::vector<std::string>& listFiles = makefile->GetListFiles();
for (std::string const& listFile : listFiles) {
tmp = listFile;
{
files.insert(tmp);
if (listFile.find("/CMakeFiles/") == std::string::npos) {
files.insert(listFile);
}
}