summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-15 01:31:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-15 01:31:27 (GMT)
commita5e76555bf9ac5fac6876ba73f8c3a7cdcabc351 (patch)
tree57b6daf9dd561b16c7d63345993b3370808ef7d5 /Source/cmDependsC.cxx
parent0304073ea6cafadd612fe9bbcc06dcaa6131f1e4 (diff)
downloadCMake-a5e76555bf9ac5fac6876ba73f8c3a7cdcabc351.zip
CMake-a5e76555bf9ac5fac6876ba73f8c3a7cdcabc351.tar.gz
CMake-a5e76555bf9ac5fac6876ba73f8c3a7cdcabc351.tar.bz2
BUG: fix for bug 6136 make sure includes are not directories
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r--Source/cmDependsC.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx
index 16faf37..5ac98bb 100644
--- a/Source/cmDependsC.cxx
+++ b/Source/cmDependsC.cxx
@@ -113,13 +113,13 @@ bool cmDependsC::WriteDependencies(const char *src, const char *obj,
std::string fullName;
if(first || cmSystemTools::FileIsFullPath(current.FileName.c_str()))
{
- if(cmSystemTools::FileExists(current.FileName.c_str()))
+ if(cmSystemTools::FileExists(current.FileName.c_str(), true))
{
fullName = current.FileName;
}
}
else if(!current.QuotedLocation.empty() &&
- cmSystemTools::FileExists(current.QuotedLocation.c_str()))
+ cmSystemTools::FileExists(current.QuotedLocation.c_str(), true))
{
// The include statement producing this entry was a double-quote
// include and the included file is present in the directory of
@@ -167,7 +167,7 @@ bool cmDependsC::WriteDependencies(const char *src, const char *obj,
}
// Look for the file in this location.
- if(cmSystemTools::FileExists(tempPathStr.c_str()))
+ if(cmSystemTools::FileExists(tempPathStr.c_str(), true))
{
fullName = tempPathStr;
HeaderLocationCache[cacheKey]=fullName;