Skip to content
Snippets Groups Projects
Commit 235cb021 authored by Alexander Neundorf's avatar Alexander Neundorf
Browse files

BUG: fix #7471, only put build directories and CMakeFiles/ in the blacklist

Alex
parent 5295385c
No related branches found
No related tags found
No related merge requests found
......@@ -280,9 +280,9 @@ void cmGlobalKdevelopGenerator
}
else
{
// add all subdirectories to the kdevelop blacklist
// so they are not monitored for added or removed files
// since this is basically handled by adding files to the cmake files
// add all subdirectories which are cmake build directories to the
// kdevelop blacklist so they are not monitored for added or removed files
// since this is handled by adding files to the cmake files
cmsys::Directory d;
if (d.Load(projectDir.c_str()))
{
......@@ -297,7 +297,12 @@ void cmGlobalKdevelopGenerator
tmp += nextFile;
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);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment