BUG: use collapse full path when testing cache directory
This commit is contained in:
parent
4e6a9a4357
commit
a13cb203ad
@ -263,7 +263,8 @@ bool cmCacheManager::LoadCache(const char* path,
|
|||||||
oldcwd[0] = oldcwd[0] - 'A' + 'a';
|
oldcwd[0] = oldcwd[0] - 'A' + 'a';
|
||||||
}
|
}
|
||||||
cmSystemTools::ConvertToUnixSlashes(currentcwd);
|
cmSystemTools::ConvertToUnixSlashes(currentcwd);
|
||||||
if(oldcwd != currentcwd)
|
if(cmSystemTools::CollapseFullPath(oldcwd.c_str())
|
||||||
|
!= cmSystemTools::CollapseFullPath(currentcwd.c_str()))
|
||||||
{
|
{
|
||||||
std::string message =
|
std::string message =
|
||||||
std::string("The current CMakeCache.txt directory ") +
|
std::string("The current CMakeCache.txt directory ") +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user