From 6d487c33d43d5daf7f066441f6086ea609bfa44b Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 17 Feb 2005 10:18:29 -0500 Subject: [PATCH] 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. --- Source/cmDependsC.cxx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index 5e51ccbdd..94ef80142 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;