mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 19:28:37 -06:00
BUG: use collapse full path when testing cache directory
This commit is contained in:
@@ -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 ") +
|
||||
|
||||
Reference in New Issue
Block a user