Merge topic 'depend-scan-backslash-issue-10281'

8dc7501 Normalize slashes in scanned #include lines (#10281)
This commit is contained in:
Brad King 2011-01-19 14:28:41 -05:00 committed by CMake Topic Stage
commit aa2b3db322
1 changed files with 1 additions and 0 deletions

View File

@ -448,6 +448,7 @@ void cmDependsC::Scan(std::istream& is, const char* directory,
// Get the file being included. // Get the file being included.
UnscannedEntry entry; UnscannedEntry entry;
entry.FileName = this->IncludeRegexLine.match(2); entry.FileName = this->IncludeRegexLine.match(2);
cmSystemTools::ConvertToUnixSlashes(entry.FileName);
if(this->IncludeRegexLine.match(3) == "\"" && if(this->IncludeRegexLine.match(3) == "\"" &&
!cmSystemTools::FileIsFullPath(entry.FileName.c_str())) !cmSystemTools::FileIsFullPath(entry.FileName.c_str()))
{ {