diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-25 15:47:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-25 15:47:56 (GMT) |
commit | cd9157d9ea387fe4203ae03ed5069e29162dc318 (patch) | |
tree | 0c360efa59bfc34d8e680ee30940fa58712c190c /Source | |
parent | a6333bfca3c3059776a6a89023da7266fd228344 (diff) | |
download | CMake-cd9157d9ea387fe4203ae03ed5069e29162dc318.zip CMake-cd9157d9ea387fe4203ae03ed5069e29162dc318.tar.gz CMake-cd9157d9ea387fe4203ae03ed5069e29162dc318.tar.bz2 |
BUG: fix remove of cygdrive path stuff
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 74e1621..4b2de1b 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -431,8 +431,8 @@ std::string cmSystemTools::ConvertToUnixOutputPath(const char* path) { std::string ret = path; - // remove // - std::string::size_type pos = 0; + // remove // except at the beginning might be a cygwin drive + std::string::size_type pos = 1; while((pos = ret.find("//", pos)) != std::string::npos) { ret.erase(pos, 1); |