Refactor: Move common methods into cmInstallGenerator

This commit is contained in:
Kyle Edwards
2021-05-25 16:18:49 -04:00
parent dd6fd62615
commit 60e752ced8
5 changed files with 88 additions and 78 deletions
+2 -3
View File
@@ -184,9 +184,8 @@ void cmInstallExportGenerator::GenerateScriptActions(std::ostream& os,
Indent indent)
{
// Remove old per-configuration export files if the main changes.
std::string installedDir =
cmStrCat("$ENV{DESTDIR}",
this->ConvertToAbsoluteDestination(this->Destination), '/');
std::string installedDir = cmStrCat(
"$ENV{DESTDIR}", ConvertToAbsoluteDestination(this->Destination), '/');
std::string installedFile = cmStrCat(installedDir, this->FileName);
os << indent << "if(EXISTS \"" << installedFile << "\")\n";
Indent indentN = indent.Next();