diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 18:37:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 18:37:32 (GMT) |
commit | 02ef2fb568745d34ef3762f0f51178ffab2b0afa (patch) | |
tree | cb61e170390dddf3b93359210280be2a23cd6c8c /Source/cmSystemTools.cxx | |
parent | c54a86edd6a0b3f9b3c4f4d90830c489262126c4 (diff) | |
download | CMake-02ef2fb568745d34ef3762f0f51178ffab2b0afa.zip CMake-02ef2fb568745d34ef3762f0f51178ffab2b0afa.tar.gz CMake-02ef2fb568745d34ef3762f0f51178ffab2b0afa.tar.bz2 |
fix network paths with spaces
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index c82f9df..ae758f4 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -820,6 +820,14 @@ std::string cmSystemTools::ConvertToWindowsOutputPath(const char* path) // Only if it is not the first position in the path which is a network // path on windows pos = 1; // start at position 1 + if(ret[0] == '\"') + { + pos = 2; // if the string is already quoted then start at 2 + if(ret.size() < 3) + { + return ret; + } + } while((pos = ret.find("\\\\", pos)) != std::string::npos) { ret.erase(pos, 1); |