From a18100898ae5188883acab295179c6758e84f496 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 19 Aug 2019 14:17:17 -0400 Subject: 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. --- Source/cmInstallExportGenerator.cxx | 5 +++++ Source/cmInstallExportGenerator.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index af06b9d..5412af3 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -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; +} diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h index c4d252c..e680066 100644 --- a/Source/cmInstallExportGenerator.h +++ b/Source/cmInstallExportGenerator.h @@ -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; -- cgit v0.12