mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmLocalGenerator: return directories as const std::string&
This commit is contained in:
committed by
Brad King
parent
e33c6c357b
commit
50fbfee3a0
@@ -2522,14 +2522,14 @@ std::string const& cmLocalGenerator::GetBinaryDirectory() const
|
||||
return this->GetCMakeInstance()->GetHomeOutputDirectory();
|
||||
}
|
||||
|
||||
const char* cmLocalGenerator::GetCurrentBinaryDirectory() const
|
||||
std::string const& cmLocalGenerator::GetCurrentBinaryDirectory() const
|
||||
{
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentBinary().c_str();
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentBinary();
|
||||
}
|
||||
|
||||
const char* cmLocalGenerator::GetCurrentSourceDirectory() const
|
||||
std::string const& cmLocalGenerator::GetCurrentSourceDirectory() const
|
||||
{
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentSource().c_str();
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentSource();
|
||||
}
|
||||
|
||||
std::string cmLocalGenerator::GetTargetDirectory(
|
||||
|
||||
Reference in New Issue
Block a user