BUG: ConvertToQuotedOutputPath must replace slashes in root component on windows.
This commit is contained in:
parent
03e2878db8
commit
f11f012cd7
@ -2333,6 +2333,18 @@ cmLocalUnixMakefileGenerator2::ConvertToQuotedOutputPath(const char* p)
|
||||
return "\"\"";
|
||||
}
|
||||
|
||||
// Fix root component slash direction for windows.
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
for(std::string::iterator i = components[0].begin();
|
||||
i != components[0].end(); ++i)
|
||||
{
|
||||
if(*i == '/')
|
||||
{
|
||||
*i = '\\';
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Begin the quoted result with the root component.
|
||||
std::string result = "\"";
|
||||
result += components[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user