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

Merge topic 'KateDontIncludeFilesInBuildDir'

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

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !8196
Brad King 3 лет назад
Родитель
Сommit
06e62ff5e8
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();
     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);
       }
     }