BUG: fix #7471, only put build directories and CMakeFiles/ in the blacklist
Alex
This commit is contained in:
parent
5295385c34
commit
235cb0216f
@ -280,9 +280,9 @@ void cmGlobalKdevelopGenerator
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// add all subdirectories to the kdevelop blacklist
|
// add all subdirectories which are cmake build directories to the
|
||||||
// so they are not monitored for added or removed files
|
// kdevelop blacklist so they are not monitored for added or removed files
|
||||||
// since this is basically handled by adding files to the cmake files
|
// since this is handled by adding files to the cmake files
|
||||||
cmsys::Directory d;
|
cmsys::Directory d;
|
||||||
if (d.Load(projectDir.c_str()))
|
if (d.Load(projectDir.c_str()))
|
||||||
{
|
{
|
||||||
@ -297,7 +297,12 @@ void cmGlobalKdevelopGenerator
|
|||||||
tmp += nextFile;
|
tmp += nextFile;
|
||||||
if (cmSystemTools::FileIsDirectory(tmp.c_str()))
|
if (cmSystemTools::FileIsDirectory(tmp.c_str()))
|
||||||
{
|
{
|
||||||
this->Blacklist.push_back(nextFile);
|
tmp += "/CMakeCache.txt";
|
||||||
|
if ((nextFile == "CMakeFiles")
|
||||||
|
|| (cmSystemTools::FileExists(tmp.c_str())))
|
||||||
|
{
|
||||||
|
this->Blacklist.push_back(nextFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user