If an entry starts with // (network paths), double quote it.

This commit is contained in:
Berk Geveci 2001-12-07 18:27:26 -05:00
parent a4dc7f7b97
commit b0f3a17450
1 changed files with 4 additions and 2 deletions

View File

@ -367,7 +367,8 @@ bool cmCacheManager::SaveCache(const char* path)
cmCacheManager::OutputHelpString(fout, ce.m_HelpString);
std::string key;
// support : in key name by double quoting
if((*i).first.find(':') != std::string::npos)
if((*i).first.find(':') != std::string::npos ||
(*i).first.find("//") == 0)
{
key = "\"";
key += i->first;
@ -411,7 +412,8 @@ bool cmCacheManager::SaveCache(const char* path)
cmCacheManager::OutputHelpString(fout, ce.m_HelpString);
std::string key;
// support : in key name by double quoting
if((*i).first.find(':') != std::string::npos)
if((*i).first.find(':') != std::string::npos ||
(*i).first.find("//") == 0)
{
key = "\"";
key += i->first;