Browse Source

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.
Alexander Neundorf 2 years ago
parent
commit
8802b81b0d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/cmExtraKateGenerator.cxx

+ 2 - 3
Source/cmExtraKateGenerator.cxx

@@ -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);
       }
     }