diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-28 17:32:03 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-30 06:28:31 (GMT) |
commit | 4e41913f9acb6a33f6a4eb1b88577fb7499e99d6 (patch) | |
tree | 6d92ca296a5f5a6b270747ad326f5413e1af5cf0 /Source/cmInstallTargetGenerator.h | |
parent | e5e529701812bdfe7ea1c3ffe682bd576b9c05a8 (diff) | |
download | CMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.zip CMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.tar.gz CMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.tar.bz2 |
cmInstallCommand: Store only a targetName, not a cmTarget.
Compute the cmTarget at Compute() time.
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r-- | Source/cmInstallTargetGenerator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h index db69220..128e1a2 100644 --- a/Source/cmInstallTargetGenerator.h +++ b/Source/cmInstallTargetGenerator.h @@ -22,7 +22,7 @@ class cmInstallTargetGenerator: public cmInstallGenerator { public: cmInstallTargetGenerator( - cmTarget& t, const char* dest, bool implib, + std::string const& targetName, const char* dest, bool implib, const char* file_permissions, std::vector<std::string> const& configurations, const char* component, @@ -56,7 +56,10 @@ public: const std::string& config, NameType nameType = NameNormal); + void Compute(cmLocalGenerator* lg); + cmTarget* GetTarget() const { return this->Target; } + bool IsImportLibrary() const { return this->ImportLibrary; } std::string GetDestination(std::string const& config) const; @@ -98,6 +101,7 @@ protected: void AddRanlibRule(std::ostream& os, Indent const& indent, const std::string& toDestDirPath); + std::string TargetName; cmTarget* Target; std::string FilePermissions; NamelinkModeType NamelinkMode; |