mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
cmMakefile: Rename GetCurrent{,Source}Directory.
Match the names used in cmake code.
This commit is contained in:
@@ -163,7 +163,7 @@ bool cmInstallCommand::HandleScriptMode(std::vector<std::string> const& args)
|
||||
std::string script = args[i];
|
||||
if(!cmSystemTools::FileIsFullPath(script.c_str()))
|
||||
{
|
||||
script = this->Makefile->GetCurrentDirectory();
|
||||
script = this->Makefile->GetCurrentSourceDirectory();
|
||||
script += "/";
|
||||
script += args[i];
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args)
|
||||
std::string dir = args[i];
|
||||
if(!cmSystemTools::FileIsFullPath(dir.c_str()))
|
||||
{
|
||||
dir = this->Makefile->GetCurrentDirectory();
|
||||
dir = this->Makefile->GetCurrentSourceDirectory();
|
||||
dir += "/";
|
||||
dir += args[i];
|
||||
}
|
||||
@@ -1376,7 +1376,7 @@ bool cmInstallCommand::MakeFilesFullPath(const char* modeName,
|
||||
std::string::size_type gpos = cmGeneratorExpression::Find(file);
|
||||
if(gpos != 0 && !cmSystemTools::FileIsFullPath(file.c_str()))
|
||||
{
|
||||
file = this->Makefile->GetCurrentDirectory();
|
||||
file = this->Makefile->GetCurrentSourceDirectory();
|
||||
file += "/";
|
||||
file += *fileIt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user