Просмотр исходного кода

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 лет назад
Родитель
Сommit
8802b81b0d
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      Source/cmExtraKateGenerator.cxx

+ 2 - 3
Source/cmExtraKateGenerator.cxx

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