summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx6
1 files 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;