summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-22 19:23:21 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-22 19:23:21 (GMT)
commit1b71f4477beeb41e3924993b5d4b78eadc092ec8 (patch)
treecd6573e19ddb19b80adc278a528af356639cf130 /Source/cmTarget.h
parent98d872c90e181e1f735cf5f801a5d18a0347cc96 (diff)
downloadCMake-1b71f4477beeb41e3924993b5d4b78eadc092ec8.zip
CMake-1b71f4477beeb41e3924993b5d4b78eadc092ec8.tar.gz
CMake-1b71f4477beeb41e3924993b5d4b78eadc092ec8.tar.bz2
ENH: Added cmTarget::GetBaseName and cmTarget::GetFullName methods and removed cmLocalGenerator::GetFullTargetName and cmLocalUnixMakefileGenerator2::GetBaseTargetName. This functionality is more sensibly implemented in cmTarget. It is also needed for an upcoming feature in which both the shared and static versions of a library will be removed before one is linked.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index cc84849..e1ea2ee 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -167,6 +167,14 @@ public:
const char* GetSuffixVariable() const;
///! Return the name of the variable to look up the target suffix
const char* GetPrefixVariable() const;
+
+ // Get the full name of the target according to the settings in the
+ // given makefile.
+ std::string GetFullName(cmMakefile* mf) const;
+
+ // Get the baes name (no suffix) of the target according to the
+ // settings in the given makefile.
+ std::string GetBaseName(cmMakefile* mf) const;
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -221,6 +229,10 @@ private:
void GatherDependencies( const cmMakefile& mf, const std::string& lib,
DependencyMap& dep_map );
+ const char* GetSuffixVariableInternal(TargetType type) const;
+ const char* GetPrefixVariableInternal(TargetType type) const;
+ std::string GetFullNameInternal(cmMakefile* mf, TargetType type) const;
+ std::string GetBaseNameInternal(cmMakefile* mf, TargetType type) const;
private:
std::string m_Name;