diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-17 09:45:39 -0500 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-17 09:45:39 -0500 |
commit | 5249551f9fd11016fffae0cb44581ae3daa2169c (patch) | |
tree | 3131f32d4eb9ee5be22fbfbd2ad87760726ee28e /Tests/TestsWorkingDirectory | |
parent | 0a014dab5c9566b63783986d98f398efb2fadcb8 (diff) | |
download | cmake-5249551f9fd11016fffae0cb44581ae3daa2169c.tar.gz |
Flip slashes around on Windows
Diffstat (limited to 'Tests/TestsWorkingDirectory')
-rw-r--r-- | Tests/TestsWorkingDirectory/main.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/TestsWorkingDirectory/main.cxx b/Tests/TestsWorkingDirectory/main.cxx index 6c4802d4a8..e1c24ba891 100644 --- a/Tests/TestsWorkingDirectory/main.cxx +++ b/Tests/TestsWorkingDirectory/main.cxx @@ -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; } |