diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-12-07 23:27:26 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-12-07 23:27:26 (GMT) |
commit | b0f3a17450f5a8dd5b3021bf237044747a09bc63 (patch) | |
tree | c3913f970e326cc1407c824f960fbf81bbbfd47b /Source/cmCacheManager.cxx | |
parent | a4dc7f7b97ef4fd95b7e329f8d18286aef77d9b4 (diff) | |
download | CMake-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.cxx | 6 |
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; |