diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2001-11-02 14:18:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2001-11-02 14:18:23 (GMT) |
commit | 36e7b5567a6706623bf8b73a5bf9d8475ca7a8ce (patch) | |
tree | 8bfb088d4531737729083eb4611f220755daee6f /Source | |
parent | c15ad5c98d7b527622a0f1ddbaaad6ffaf08d94a (diff) | |
download | CMake-36e7b5567a6706623bf8b73a5bf9d8475ca7a8ce.zip CMake-36e7b5567a6706623bf8b73a5bf9d8475ca7a8ce.tar.gz CMake-36e7b5567a6706623bf8b73a5bf9d8475ca7a8ce.tar.bz2 |
On win32 path is all in lower case now
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCacheManager.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 3d8110a..11465d7 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -252,16 +252,10 @@ bool cmCacheManager::LoadCache(const char* path, { std::string currentcwd = path; std::string oldcwd = this->GetCacheValue("CMAKE_CACHEFILE_DIR"); - if ( currentcwd[0] >= 'A' && currentcwd[0] <= 'Z' && - currentcwd[1] == ':' ) - { - currentcwd[0] = currentcwd[0] - 'A' + 'a'; - } - if ( oldcwd[0] >= 'A' && oldcwd[0] <= 'Z' && - oldcwd[1] == ':' ) - { - oldcwd[0] = oldcwd[0] - 'A' + 'a'; - } +#ifdef _WIN32 + currentcwd = cmSystemTools::LowerCase(currentcwd); + oldcwd = cmSystemTools::LowerCase(oldcwd); +#endif // _WIN32 cmSystemTools::ConvertToUnixSlashes(currentcwd); if(cmSystemTools::CollapseFullPath(oldcwd.c_str()) != cmSystemTools::CollapseFullPath(currentcwd.c_str())) |