Browse Source

Ignore files under the CMakeFiles directory

Ben Boeckel 15 years ago
parent
commit
cf8b15a5c1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Source/cmMakefile.cxx

+ 4 - 2
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 << ":" <<