diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 3d0c57757..58053a209 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -2598,7 +2598,7 @@ cmLocalUnixMakefileGenerator2 else if(cmSystemTools::FileIsFullPath(name)) { // This is a path to a file. Just trust that it will be present. - depends.push_back(name); + depends.push_back(cmSystemTools::CollapseFullPath(name)); } }