BUG: ConvertToQuotedOutputPath must replace slashes in root component on windows.

This commit is contained in:
Brad King 2005-02-25 09:14:34 -05:00
parent 03e2878db8
commit f11f012cd7

View File

@ -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];