diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-11-12 19:20:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-11-12 19:20:21 (GMT) |
commit | 9d4aefc0880fce6b008b9ede8ed212911d726731 (patch) | |
tree | 7629f71adaf7a2b6c817260df994110f8bf02a05 /Source/cmMakeDepend.cxx | |
parent | 467fa9dfb3ecfb72a10b92edb8a4b53244e0562d (diff) | |
download | CMake-9d4aefc0880fce6b008b9ede8ed212911d726731.zip CMake-9d4aefc0880fce6b008b9ede8ed212911d726731.tar.gz CMake-9d4aefc0880fce6b008b9ede8ed212911d726731.tar.bz2 |
BUG: fix for bug 373 make depend problem
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r-- | Source/cmMakeDepend.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 9cb7c68..077bd19 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; |