From a13cb203ad1e12850bc0ee2df6fd61b5f813543c Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 1 Nov 2001 18:36:56 -0500 Subject: BUG: use collapse full path when testing cache directory --- Source/cmCacheManager.cxx | 5 +++-- 1 file 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 ") + -- cgit v0.12