diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 11:25:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-18 16:46:48 (GMT) |
commit | dd4f8b2a48c7962dfa9cf856c36aa1c235248b2d (patch) | |
tree | 6b975471ae8090876313ea63b8bf30474ed8ad21 /Source/cmInstallTargetGenerator.h | |
parent | 753ab3c978fa763fc5b7d9fc3d08b1a4d7b46e5e (diff) | |
download | CMake-dd4f8b2a48c7962dfa9cf856c36aa1c235248b2d.zip CMake-dd4f8b2a48c7962dfa9cf856c36aa1c235248b2d.tar.gz CMake-dd4f8b2a48c7962dfa9cf856c36aa1c235248b2d.tar.bz2 |
install: Record TARGET mode backtraces internally
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r-- | Source/cmInstallTargetGenerator.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h index f6bec20..bf625d1 100644 --- a/Source/cmInstallTargetGenerator.h +++ b/Source/cmInstallTargetGenerator.h @@ -6,6 +6,7 @@ #include "cmConfigure.h" // IWYU pragma: keep #include "cmInstallGenerator.h" +#include "cmListFileCache.h" #include "cmScriptGenerator.h" #include <iosfwd> @@ -21,11 +22,12 @@ class cmLocalGenerator; class cmInstallTargetGenerator : public cmInstallGenerator { public: - cmInstallTargetGenerator(std::string const& targetName, const char* dest, - bool implib, const char* file_permissions, - std::vector<std::string> const& configurations, - const char* component, MessageLevel message, - bool exclude_from_all, bool optional); + cmInstallTargetGenerator( + std::string const& targetName, const char* dest, bool implib, + const char* file_permissions, + std::vector<std::string> const& configurations, const char* component, + MessageLevel message, bool exclude_from_all, bool optional, + cmListFileBacktrace const& backtrace = cmListFileBacktrace()); ~cmInstallTargetGenerator() override; /** Select the policy for installing shared library linkable name @@ -64,6 +66,8 @@ public: std::string GetDestination(std::string const& config) const; + cmListFileBacktrace const& GetBacktrace() const { return this->Backtrace; } + protected: void GenerateScript(std::ostream& os) override; void GenerateScriptForConfig(std::ostream& os, const std::string& config, @@ -108,6 +112,7 @@ protected: NamelinkModeType NamelinkMode; bool ImportLibrary; bool Optional; + cmListFileBacktrace Backtrace; }; #endif |