From 8802b81b0da0f74addac291f30eaa58adff0bd69 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 13 Feb 2023 22:34:53 +0100 Subject: 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. --- Source/cmExtraKateGenerator.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmExtraKateGenerator.cxx b/Source/cmExtraKateGenerator.cxx index 0d0b513..0020690 100644 --- a/Source/cmExtraKateGenerator.cxx +++ b/Source/cmExtraKateGenerator.cxx @@ -282,9 +282,8 @@ std::string cmExtraKateGenerator::GenerateFilesString( cmMakefile* makefile = lgen->GetMakefile(); const std::vector& listFiles = makefile->GetListFiles(); for (std::string const& listFile : listFiles) { - tmp = listFile; - { - files.insert(tmp); + if (listFile.find("/CMakeFiles/") == std::string::npos) { + files.insert(listFile); } } -- cgit v0.12