From 748e1a36b3ecf6e28df40c26a6e659dbe345d9aa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 22 Nov 2000 11:02:30 -0500 Subject: BUG: remove bogus warning about not finding a depend file, if there are no include paths --- Source/cmMakeDepend.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/cmMakeDepend.cxx') diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 8499d87b12..44b0fe4270 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -241,13 +241,13 @@ void cmDependInformation::MergeInfo(cmDependInformation* info) // find the full path to fname by searching the m_IncludeDirectories array std::string cmMakeDepend::FullPath(const char* fname) { + if(cmSystemTools::FileExists(fname)) + { + return std::string(fname); + } for(std::vector::iterator i = m_IncludeDirectories.begin(); i != m_IncludeDirectories.end(); ++i) { - if(cmSystemTools::FileExists(fname)) - { - return std::string(fname); - } std::string path = *i; path = path + "/"; path = path + fname; -- cgit v1.2.1