diff options
author | Brad King <brad.king@kitware.com> | 2009-05-01 14:39:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-05-01 14:39:44 (GMT) |
commit | 392b38cef7d89214ed386f6287c23bfe67cda6a5 (patch) | |
tree | 31af2eec4b3ccb55d4c8fe39d615051f386cf213 /Source/cmTarget.h | |
parent | bcb9a479db38b5775cb84c1265b3a18736a3dfc1 (diff) | |
download | CMake-392b38cef7d89214ed386f6287c23bfe67cda6a5.zip CMake-392b38cef7d89214ed386f6287c23bfe67cda6a5.tar.gz CMake-392b38cef7d89214ed386f6287c23bfe67cda6a5.tar.bz2 |
ENH: Remove cmTarget internal type arguments
Internally cmTarget was passing the target type in several name
computation signatures to support computation of both shared and static
library names for one target. We no longer need to compute both names,
so this change simplifies the internals by using the GetType method and
dropping the type from method signatures.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 32e8285..6d6ce66 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -448,28 +448,13 @@ private: const LibraryID& lib, DependencyMap& dep_map); - const char* GetSuffixVariableInternal(TargetType type, bool implib); - const char* GetPrefixVariableInternal(TargetType type, bool implib); - std::string GetFullNameInternal(TargetType type, const char* config, - bool implib); - void GetFullNameInternal(TargetType type, const char* config, bool implib, + const char* GetSuffixVariableInternal(bool implib); + const char* GetPrefixVariableInternal(bool implib); + std::string GetFullNameInternal(const char* config, bool implib); + void GetFullNameInternal(const char* config, bool implib, std::string& outPrefix, std::string& outBase, std::string& outSuffix); - void GetLibraryNamesInternal(std::string& name, - std::string& soName, - std::string& realName, - std::string& impName, - std::string& pdbName, - TargetType type, - const char* config); - void GetExecutableNamesInternal(std::string& name, - std::string& realName, - std::string& impName, - std::string& pdbName, - TargetType type, - const char* config); - // Use a makefile variable to set a default for the given property. // If the variable is not defined use the given default instead. void SetPropertyDefault(const char* property, const char* default_value); |