mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 04:50:24 +00:00
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.
This commit is contained in:
parent
28a0403c34
commit
8dc7501d50
@ -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()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user