diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 9db92ccaf..b9677a8d0 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1364,7 +1364,7 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout) dep != (*source)->GetDepends().end(); ++dep) { std::string dependfile = - this->ConvertToOutputPath(dep->c_str()); + this->ConvertToOutputPath(cmSystemTools::CollapseFullPath(dep->c_str()).c_str()); if(emitted.insert(dependfile).second) { fout << " \\\n" << dependfile ;