COMP: Fix calls to superclass methods for Borland
The superclass of cmSystemTools is cmsys::SystemTools, which should be referencable by just SystemTools from inside the class. Borland C++ does not seem to support this, so we use cmSystemTools instead.
This commit is contained in:
parent
b1005a0e5e
commit
efe07c4e0a
|
@ -1101,14 +1101,14 @@ std::string cmSystemTools::FileExistsInParentDirectories(const char* fname,
|
|||
const char* directory, const char* toplevel)
|
||||
{
|
||||
std::string file = fname;
|
||||
SystemTools::ConvertToUnixSlashes(file);
|
||||
cmSystemTools::ConvertToUnixSlashes(file);
|
||||
std::string dir = directory;
|
||||
SystemTools::ConvertToUnixSlashes(dir);
|
||||
cmSystemTools::ConvertToUnixSlashes(dir);
|
||||
std::string prevDir;
|
||||
while(dir != prevDir)
|
||||
{
|
||||
std::string path = dir + "/" + file;
|
||||
if ( SystemTools::FileExists(path.c_str()) )
|
||||
if ( cmSystemTools::FileExists(path.c_str()) )
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
@ -1117,7 +1117,7 @@ std::string cmSystemTools::FileExistsInParentDirectories(const char* fname,
|
|||
break;
|
||||
}
|
||||
prevDir = dir;
|
||||
dir = SystemTools::GetParentDirectory(dir.c_str());
|
||||
dir = cmSystemTools::GetParentDirectory(dir.c_str());
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue