cmLocalUnixMakefileGenerator3: Mark GetRelativeTargetDirectory const

This commit is contained in:
Brad King
2019-09-27 11:15:00 -04:00
parent be7857f40d
commit 11fb377eb9
2 changed files with 3 additions and 2 deletions

View File

@@ -809,7 +809,7 @@ void cmLocalUnixMakefileGenerator3::WriteConvenienceRule(
} }
std::string cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory( std::string cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory(
cmGeneratorTarget* target) cmGeneratorTarget const* target) const
{ {
std::string dir = std::string dir =
cmStrCat(this->HomeRelativeOutputPath, this->GetTargetDirectory(target)); cmStrCat(this->HomeRelativeOutputPath, this->GetTargetDirectory(target));

View File

@@ -139,7 +139,8 @@ public:
void WriteSpecialTargetsTop(std::ostream& makefileStream); void WriteSpecialTargetsTop(std::ostream& makefileStream);
void WriteSpecialTargetsBottom(std::ostream& makefileStream); void WriteSpecialTargetsBottom(std::ostream& makefileStream);
std::string GetRelativeTargetDirectory(cmGeneratorTarget* target); std::string GetRelativeTargetDirectory(
cmGeneratorTarget const* target) const;
// File pairs for implicit dependency scanning. The key of the map // File pairs for implicit dependency scanning. The key of the map
// is the depender and the value is the explicit dependee. // is the depender and the value is the explicit dependee.