From b0f3a17450f5a8dd5b3021bf237044747a09bc63 Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Fri, 7 Dec 2001 18:27:26 -0500 Subject: If an entry starts with // (network paths), double quote it. --- Source/cmCacheManager.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index d74fb59..b8b939d 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -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; -- cgit v0.12