diff options
author | Brad King <brad.king@kitware.com> | 2023-02-14 14:15:50 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-02-14 14:15:59 (GMT) |
commit | 06e62ff5e8bca3487022c43355aa0562da241090 (patch) | |
tree | e529d41a618660038fdbfec09c6b4e15bd6d556e | |
parent | 0be3d201c677b47d9602104c37084705f866e19a (diff) | |
parent | 8802b81b0da0f74addac291f30eaa58adff0bd69 (diff) | |
download | CMake-06e62ff5e8bca3487022c43355aa0562da241090.zip CMake-06e62ff5e8bca3487022c43355aa0562da241090.tar.gz CMake-06e62ff5e8bca3487022c43355aa0562da241090.tar.bz2 |
Merge topic 'KateDontIncludeFilesInBuildDir'
8802b81b0d Kate: don't include files in the CMakeFiles/ dir in the project
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8196
-rw-r--r-- | Source/cmExtraKateGenerator.cxx | 5 |
1 files 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<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); } } |