summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-12-03 17:49:37 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-12-03 17:49:37 (GMT)
commitcf8b15a5c1eb32f756cf76f06fd18c23241dd103 (patch)
tree1845fbb4a8c2f20e01e10433b6180a3dd7cc8eea /Source/cmMakefile.cxx
parentfd50f06b215f81f2ee28ae8afab32d0b3049fac5 (diff)
downloadCMake-cf8b15a5c1eb32f756cf76f06fd18c23241dd103.zip
CMake-cf8b15a5c1eb32f756cf76f06fd18c23241dd103.tar.gz
CMake-cf8b15a5c1eb32f756cf76f06fd18c23241dd103.tar.bz2
Ignore files under the CMakeFiles directory
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 82b0129..feeee2f 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1793,8 +1793,10 @@ void cmMakefile::CheckForUnused(const char* reason, const char* name) const
if (this->CheckSystemVars ||
cmSystemTools::IsSubDirectory(path.c_str(),
this->GetHomeDirectory()) ||
- cmSystemTools::IsSubDirectory(path.c_str(),
- this->GetHomeOutputDirectory()))
+ (cmSystemTools::IsSubDirectory(path.c_str(),
+ this->GetHomeOutputDirectory()) &&
+ !cmSystemTools::IsSubDirectory(path.c_str(),
+ cmake::GetCMakeFilesDirectory())))
{
cmOStringStream msg;
msg << path << ":" << line << ":" <<