diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 6be42b47a..3c2f1491f 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1316,8 +1316,9 @@ bool cmLocalUnixMakefileGenerator3::ScanDependencies(const char* tgtInfo) if(lang == "C" || lang == "CXX" || lang == "RC") { std::string includeCacheFileName = dir; - includeCacheFileName += "/includecache."; + includeCacheFileName += "/"; includeCacheFileName += lang; + includeCacheFileName += ".includecache"; // TODO: Handle RC (resource files) dependencies correctly. scanner = new cmDependsC(includes,