diff options
-rw-r--r-- | Source/cmCacheManager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index faf5059..3d8110a 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -263,8 +263,9 @@ bool cmCacheManager::LoadCache(const char* path, oldcwd[0] = oldcwd[0] - 'A' + 'a'; } cmSystemTools::ConvertToUnixSlashes(currentcwd); - if(oldcwd != currentcwd) - { + if(cmSystemTools::CollapseFullPath(oldcwd.c_str()) + != cmSystemTools::CollapseFullPath(currentcwd.c_str())) + { std::string message = std::string("The current CMakeCache.txt directory ") + currentcwd + std::string(" is different than the directory ") + |