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:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user