summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-07-29 21:24:21 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-07-29 21:24:21 (GMT)
commitf32f6f0652b8b99abd2cf8558a193571e47e9217 (patch)
treef91ccbc4c17a30828a4df3361b6132bba5c80d83 /Source/cmExtraCodeBlocksGenerator.cxx
parent5ef20b2dc54474ceba1c81a75e8c3fc558d505fa (diff)
downloadCMake-f32f6f0652b8b99abd2cf8558a193571e47e9217.zip
CMake-f32f6f0652b8b99abd2cf8558a193571e47e9217.tar.gz
CMake-f32f6f0652b8b99abd2cf8558a193571e47e9217.tar.bz2
Don't put files from CMAKE_ROOT into CodeBlocks projects (#12110)
This causes that all files in C::B are displayed in a tree starting at / Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 4f93067..28ea10a 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -266,10 +266,17 @@ void cmExtraCodeBlocksGenerator
}
// Convert
+ const char* cmakeRoot = mf->GetDefinition("CMAKE_ROOT");
for (std::vector<std::string>::const_iterator jt = listFiles.begin();
jt != listFiles.end();
++jt)
{
+ // don't put cmake's own files into the project (#12110):
+ if (jt->find(cmakeRoot) == 0)
+ {
+ continue;
+ }
+
const std::string &relative = cmSystemTools::RelativePath(
it->second[0]->GetMakefile()->GetHomeDirectory(),
jt->c_str());