summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-07 23:27:26 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-07 23:27:26 (GMT)
commitb0f3a17450f5a8dd5b3021bf237044747a09bc63 (patch)
treec3913f970e326cc1407c824f960fbf81bbbfd47b /Source/cmCacheManager.cxx
parenta4dc7f7b97ef4fd95b7e329f8d18286aef77d9b4 (diff)
downloadCMake-b0f3a17450f5a8dd5b3021bf237044747a09bc63.zip
CMake-b0f3a17450f5a8dd5b3021bf237044747a09bc63.tar.gz
CMake-b0f3a17450f5a8dd5b3021bf237044747a09bc63.tar.bz2
If an entry starts with // (network paths), double quote it.
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;