BUG: remove bogus warning about not finding a depend file, if there are no include paths

This commit is contained in:
Bill Hoffman 2000-11-22 11:02:30 -05:00
parent d466664817
commit 748e1a36b3

View File

@ -240,14 +240,14 @@ void cmDependInformation::MergeInfo(cmDependInformation* info)
// find the full path to fname by searching the m_IncludeDirectories array // find the full path to fname by searching the m_IncludeDirectories array
std::string cmMakeDepend::FullPath(const char* fname) std::string cmMakeDepend::FullPath(const char* fname)
{
for(std::vector<std::string>::iterator i = m_IncludeDirectories.begin();
i != m_IncludeDirectories.end(); ++i)
{ {
if(cmSystemTools::FileExists(fname)) if(cmSystemTools::FileExists(fname))
{ {
return std::string(fname); return std::string(fname);
} }
for(std::vector<std::string>::iterator i = m_IncludeDirectories.begin();
i != m_IncludeDirectories.end(); ++i)
{
std::string path = *i; std::string path = *i;
path = path + "/"; path = path + "/";
path = path + fname; path = path + fname;