1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 17:31:57 +08:00

cmInstallExportGenerator: add a method for the file destination

This will be used in the error message which remarks about a target
being exported ambiguously into different installations.
This commit is contained in:
Ben Boeckel
2019-08-19 14:17:17 -04:00
parent c41c79285b
commit a18100898a
2 changed files with 6 additions and 0 deletions

View File

@@ -218,3 +218,8 @@ void cmInstallExportGenerator::GenerateScriptActions(std::ostream& os,
false, this->FilePermissions.c_str(), nullptr, nullptr,
nullptr, indent);
}
std::string cmInstallExportGenerator::GetDestinationFile() const
{
return this->Destination + '/' + this->FileName;
}

View File

@@ -41,6 +41,7 @@ public:
const std::string& GetNamespace() const { return this->Namespace; }
std::string const& GetDestination() const { return this->Destination; }
std::string GetDestinationFile() const;
protected:
void GenerateScript(std::ostream& os) override;