mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
Flip slashes around on Windows
This commit is contained in:
@@ -26,6 +26,13 @@ inline const char* Getcwd(char* buf, unsigned int len)
|
||||
{
|
||||
buf[0] = toupper(buf[0]);
|
||||
}
|
||||
for(char* p = buf; *p; ++p)
|
||||
{
|
||||
if(*p == '\\')
|
||||
{
|
||||
*p = '/';
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user