diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-05-25 20:18:49 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-05-31 12:41:44 (GMT) |
commit | 60e752ced8e9b604591082ee3b21d545fafa8ad8 (patch) | |
tree | 86495c940f685d6c777488ffc97aa9c2d93b83ee /Source/cmInstallExportGenerator.cxx | |
parent | dd6fd62615ef816f5cbdbd8cd5f827a5cc360464 (diff) | |
download | CMake-60e752ced8e9b604591082ee3b21d545fafa8ad8.zip CMake-60e752ced8e9b604591082ee3b21d545fafa8ad8.tar.gz CMake-60e752ced8e9b604591082ee3b21d545fafa8ad8.tar.bz2 |
Refactor: Move common methods into cmInstallGenerator
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index ccefd92..d932fd9 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -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(); |