diff options
author | Brad King <brad.king@kitware.com> | 2008-02-06 19:20:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-06 19:20:36 (GMT) |
commit | 9e64d5b272e0279d4a6d5e595118f34bc3c1f6c9 (patch) | |
tree | 91922579fd8e7264d435c8492e775fe777db611f /Source/cmInstallTargetGenerator.h | |
parent | afad12431371d9a725b9a85db39f8c4da37fabaf (diff) | |
download | CMake-9e64d5b272e0279d4a6d5e595118f34bc3c1f6c9.zip CMake-9e64d5b272e0279d4a6d5e595118f34bc3c1f6c9.tar.gz CMake-9e64d5b272e0279d4a6d5e595118f34bc3c1f6c9.tar.bz2 |
ENH: Improve exporting/importing of targets
- Use real name instead of link for location of versioned targets
- Error when a target is exported multiple times
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r-- | Source/cmInstallTargetGenerator.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h index 3b5dbb8..95c255d 100644 --- a/Source/cmInstallTargetGenerator.h +++ b/Source/cmInstallTargetGenerator.h @@ -45,10 +45,20 @@ public: NamelinkModeSkip }; void SetNamelinkMode(NamelinkModeType mode) { this->NamelinkMode = mode; } + NamelinkModeType GetNamelinkMode() const { return this->NamelinkMode; } std::string GetInstallFilename(const char* config) const; - static std::string GetInstallFilename(cmTarget*target, const char* config, - bool implib, bool useSOName); + + enum NameType + { + NameNormal, + NameImplib, + NameSO, + NameReal + }; + + static std::string GetInstallFilename(cmTarget*target, const char* config, + NameType nameType = NameNormal); cmTarget* GetTarget() const { return this->Target; } bool IsImportLibrary() const { return this->ImportLibrary; } |