summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalKdevelopGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-08-16 20:33:47 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-08-16 20:33:47 (GMT)
commit235cb0216f07a7869057a51fdb8c59e6ee03554b (patch)
tree528c27916149f3a294a8367423cfc2d7b3248233 /Source/cmGlobalKdevelopGenerator.cxx
parent5295385c34d76705612f6d0e1396884a23284ad7 (diff)
downloadCMake-235cb0216f07a7869057a51fdb8c59e6ee03554b.zip
CMake-235cb0216f07a7869057a51fdb8c59e6ee03554b.tar.gz
CMake-235cb0216f07a7869057a51fdb8c59e6ee03554b.tar.bz2
BUG: fix #7471, only put build directories and CMakeFiles/ in the blacklist
Alex
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r--Source/cmGlobalKdevelopGenerator.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx
index eb760c8..aab784d 100644
--- a/Source/cmGlobalKdevelopGenerator.cxx
+++ b/Source/cmGlobalKdevelopGenerator.cxx
@@ -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);
+ }
}
}
}