mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
Refactor: Move common methods into cmInstallGenerator
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user