diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-09 18:58:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-09 18:58:55 (GMT) |
commit | 92b6c8e742df5112afd8b9cf4d0c752fe02a0619 (patch) | |
tree | b1aeef55649f9a93cb0342447225b43ccd842434 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 3a3ffea532513f823d17276bace8bbe00c8eb50f (diff) | |
download | CMake-92b6c8e742df5112afd8b9cf4d0c752fe02a0619.zip CMake-92b6c8e742df5112afd8b9cf4d0c752fe02a0619.tar.gz CMake-92b6c8e742df5112afd8b9cf4d0c752fe02a0619.tar.bz2 |
PERF: apply patch for bug 2575 speeds up depend scanning
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index c89c587..d00e6a1 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2790,11 +2790,15 @@ cmLocalUnixMakefileGenerator3 cmDepends *scanner = 0; if(lang == "C" || lang == "CXX" || lang == "RC") { + std::string includeCacheFileName = dir; + includeCacheFileName += "/includecache."; + includeCacheFileName += lang; + // TODO: Handle RC (resource files) dependencies correctly. scanner = new cmDependsC(includes, includeRegexScan.c_str(), includeRegexComplain.c_str(), - generatedFiles); + generatedFiles, includeCacheFileName); } #ifdef CMAKE_BUILD_WITH_CMAKE else if(lang == "Fortran") |