From 8dc7501d509738606e1d00d23e00a4d28a17e832 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 17 Jan 2011 15:03:53 -0500 Subject: Normalize slashes in scanned #include lines (#10281) On Windows platforms source files may contain '\' in include directives: #include "a\b.h" Normalize these while scanning to use forward slashes. CMake will convert from forward slashes to the direction preferred by the native build tools when writing the path to 'depend.make' files. --- Source/cmDependsC.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index 942cb3f..a76b3af 100644 --- a/Source/cmDependsC.cxx +++ b/Source/cmDependsC.cxx @@ -448,6 +448,7 @@ void cmDependsC::Scan(std::istream& is, const char* directory, // Get the file being included. UnscannedEntry entry; entry.FileName = this->IncludeRegexLine.match(2); + cmSystemTools::ConvertToUnixSlashes(entry.FileName); if(this->IncludeRegexLine.match(3) == "\"" && !cmSystemTools::FileIsFullPath(entry.FileName.c_str())) { -- cgit v0.12