From 9d4aefc0880fce6b008b9ede8ed212911d726731 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 12 Nov 2003 14:20:21 -0500 Subject: [PATCH] BUG: fix for bug 373 make depend problem --- Source/cmMakeDepend.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 9cb7c6882..077bd198e 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -324,7 +324,8 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath) path = path + "/"; } path = path + fname; - if(cmSystemTools::FileExists(path.c_str())) + if(cmSystemTools::FileExists(path.c_str()) + && !cmSystemTools::FileIsDirectory(path.c_str())) { std::string fp = cmSystemTools::CollapseFullPath(path.c_str()); m_DirectoryToFileToPathMap[extraPath? extraPath: ""][fname] = fp; @@ -340,7 +341,8 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath) path = path + "/"; } path = path + fname; - if(cmSystemTools::FileExists(path.c_str())) + if(cmSystemTools::FileExists(path.c_str()) + && !cmSystemTools::FileIsDirectory(path.c_str())) { std::string fp = cmSystemTools::CollapseFullPath(path.c_str()); m_DirectoryToFileToPathMap[extraPath][fname] = fp;