diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2000-11-22 16:02:30 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2000-11-22 16:02:30 (GMT) |
commit | 748e1a36b3ecf6e28df40c26a6e659dbe345d9aa (patch) | |
tree | aa7a535274e05aa86f1ccb008e8ed352b74a68f8 /Source/cmMakeDepend.cxx | |
parent | d466664817ae24149f61f4f08ad204ebcc8afae8 (diff) | |
download | CMake-748e1a36b3ecf6e28df40c26a6e659dbe345d9aa.zip CMake-748e1a36b3ecf6e28df40c26a6e659dbe345d9aa.tar.gz CMake-748e1a36b3ecf6e28df40c26a6e659dbe345d9aa.tar.bz2 |
BUG: remove bogus warning about not finding a depend file, if there are no include paths
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r-- | Source/cmMakeDepend.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 8499d87..44b0fe4 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<std::string>::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; |