summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalKdevelopGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-06-14 16:28:32 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-06-14 16:28:32 (GMT)
commit8e9a6becccc739e8135d5a3b303e8bf125fe3015 (patch)
tree4d7cbd51dd9ce0b7ecb79bcde0b4439c912383e7 /Source/cmGlobalKdevelopGenerator.cxx
parent108839ffda95fc54296d05dec176ff3a6ed6f02c (diff)
downloadCMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.zip
CMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.tar.gz
CMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.tar.bz2
ENH: centralized locaiton of CMakeFiles setting
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r--Source/cmGlobalKdevelopGenerator.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx
index 9b60ea5..fa58fb6 100644
--- a/Source/cmGlobalKdevelopGenerator.cxx
+++ b/Source/cmGlobalKdevelopGenerator.cxx
@@ -134,7 +134,9 @@ bool cmGlobalKdevelopGenerator
tmp=*lt;
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
// make sure the file is part of this source tree
- if ((tmp[0]!='/') && (strstr(tmp.c_str(), "CMakeFiles/")==0))
+ if ((tmp[0]!='/') &&
+ (strstr(tmp.c_str(),
+ cmake::GetCMakeFilesDirectoryPostSlash())==0))
{
files.insert(tmp);
tmp=cmSystemTools::GetFilenameName(tmp);
@@ -159,7 +161,8 @@ bool cmGlobalKdevelopGenerator
{
tmp=(*si)->GetFullPath();
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
- if ((tmp[0]!='/') && (strstr(tmp.c_str(), "CMakeFiles/")==0))
+ if ((tmp[0]!='/') &&
+ (strstr(tmp.c_str(), cmake::GetCMakeFilesDirectoryPostSlash())==0))
{
files.insert(tmp);
}
@@ -169,7 +172,8 @@ bool cmGlobalKdevelopGenerator
{
tmp=*lt;
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
- if ((tmp[0]!='/') && (strstr(tmp.c_str(), "CMakeFiles/")==0))
+ if ((tmp[0]!='/') &&
+ (strstr(tmp.c_str(), cmake::GetCMakeFilesDirectoryPostSlash())==0))
{
files.insert(tmp.c_str());
}