Merge topic 'ExcludeCMakesFilesFromCodeBlocksProject'
f32f6f0
Don't put files from CMAKE_ROOT into CodeBlocks projects (#12110)
This commit is contained in:
commit
e9a6d86d91
|
@ -266,10 +266,17 @@ void cmExtraCodeBlocksGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert
|
// Convert
|
||||||
|
const char* cmakeRoot = mf->GetDefinition("CMAKE_ROOT");
|
||||||
for (std::vector<std::string>::const_iterator jt = listFiles.begin();
|
for (std::vector<std::string>::const_iterator jt = listFiles.begin();
|
||||||
jt != listFiles.end();
|
jt != listFiles.end();
|
||||||
++jt)
|
++jt)
|
||||||
{
|
{
|
||||||
|
// don't put cmake's own files into the project (#12110):
|
||||||
|
if (jt->find(cmakeRoot) == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string &relative = cmSystemTools::RelativePath(
|
const std::string &relative = cmSystemTools::RelativePath(
|
||||||
it->second[0]->GetMakefile()->GetHomeDirectory(),
|
it->second[0]->GetMakefile()->GetHomeDirectory(),
|
||||||
jt->c_str());
|
jt->c_str());
|
||||||
|
|
Loading…
Reference in New Issue