diff options
author | Brad King <brad.king@kitware.com> | 2005-02-17 15:18:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-17 15:18:29 (GMT) |
commit | 6d487c33d43d5daf7f066441f6086ea609bfa44b (patch) | |
tree | 9861c091f087669b5346f9c716a414ec51f9fdfb /Source/cmDependsC.cxx | |
parent | 3d9d8934262df109938c0cb5498544b311d8bac7 (diff) | |
download | CMake-6d487c33d43d5daf7f066441f6086ea609bfa44b.zip CMake-6d487c33d43d5daf7f066441f6086ea609bfa44b.tar.gz CMake-6d487c33d43d5daf7f066441f6086ea609bfa44b.tar.bz2 |
ENH: Removing collapsing of files to full path before checking. The current working directory is set correctly because the dependency lines are used by make anyway. This drastically improves the speed of dependency checking.
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r-- | Source/cmDependsC.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index 5e51ccb..94ef801 100644 --- a/Source/cmDependsC.cxx +++ b/Source/cmDependsC.cxx @@ -198,26 +198,12 @@ bool cmDependsC::CheckDependencies(std::istream& is) dependee = dependee.substr(0, pos+1); } - // Convert dependee to a full path. - if(!cmSystemTools::FileIsFullPath(dependee.c_str())) - { - dependee = cmSystemTools::CollapseFullPath(dependee.c_str(), - m_Directory.c_str()); - } - // Strip whitespace from the depender. if((pos = depender.find_last_not_of(" \t\r\n")) != std::string::npos) { depender = depender.substr(0, pos+1); } - // Convert depender to a full path. - if(!cmSystemTools::FileIsFullPath(depender.c_str())) - { - depender = cmSystemTools::CollapseFullPath(depender.c_str(), - m_Directory.c_str()); - } - // Dependencies must be regenerated if the dependee does not exist // or if the depender exists and is older than the dependee. int result = 0; |