diff -u -r orig/cmake-3.4.1/Source/cmDepends.cxx cmake-3.4.1/Source/cmDepends.cxx
--- orig/cmake-3.4.1/Source/cmDepends.cxx	2015-12-02 16:43:21.000000000 +0100
+++ cmake-3.4.1/Source/cmDepends.cxx	2015-12-08 10:00:09.547462649 +0100
@@ -18,6 +18,7 @@
 #include "cmFileTimeComparison.h"
 #include <string.h>
 #include <cmsys/FStream.hxx>
+#include <algorithm>
 
 //----------------------------------------------------------------------------
 cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir):
@@ -291,6 +292,26 @@
   return okay;
 }
 
+// Helper predicate for removing absolute paths that don't point to the source
+// directory, from the dependency generation.
+class NotInSourceDir
+{
+public:
+  // Constructor with the source directory's path
+  NotInSourceDir( const std::string& sourceDir ) : SourceDir( sourceDir ) {}
+  // Operator evaluating the predicate
+  bool operator()( const std::string& path ) const
+  {
+    // Keep all relative paths:
+    if( ! cmSystemTools::FileIsFullPath( path ) ) return false;
+    // If it's an absolute path, check if it starts with the source directory:
+    return ( path.find( SourceDir ) != 0 );
+  }
+private:
+  // The source directory
+  std::string SourceDir;
+};
+
 //----------------------------------------------------------------------------
 void cmDepends::SetIncludePathFromLanguage(const std::string& lang)
 {
@@ -317,4 +338,11 @@
       cmSystemTools::ExpandListArgument(includePath, this->IncludePath);
       }
     }
+  // Remove all absolute paths outside of the source tree from the dependency
+  // evaluation:
+  const char* sourceDir = LocalGenerator->GetState()->GetSourceDirectory();
+  std::vector<std::string>::iterator itr =
+    std::remove_if( this->IncludePath.begin(), this->IncludePath.end(),
+                    NotInSourceDir( sourceDir ) );
+  this->IncludePath.erase( itr, this->IncludePath.end() );
 }
