summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-15 23:19:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-19 13:31:32 (GMT)
commit9facfd133654098ac59c0df957555ea5b5ed9a5a (patch)
treed50e9f2e2e7a61ddf8f534a22225943024d67b4d /Source/cmGeneratorTarget.cxx
parent78bfee35d5bd5cba879d92eda4310d25bc54b30e (diff)
downloadCMake-9facfd133654098ac59c0df957555ea5b5ed9a5a.zip
CMake-9facfd133654098ac59c0df957555ea5b5ed9a5a.tar.gz
CMake-9facfd133654098ac59c0df957555ea5b5ed9a5a.tar.bz2
Move GetCreateRuleVariable to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 96f0ee8..03f511f 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -336,3 +336,22 @@ void cmGeneratorTarget::GetAppleArchs(const char* config,
cmSystemTools::ExpandListArgument(std::string(archs), archVec);
}
}
+
+//----------------------------------------------------------------------------
+const char* cmGeneratorTarget::GetCreateRuleVariable()
+{
+ switch(this->GetType())
+ {
+ case cmTarget::STATIC_LIBRARY:
+ return "_CREATE_STATIC_LIBRARY";
+ case cmTarget::SHARED_LIBRARY:
+ return "_CREATE_SHARED_LIBRARY";
+ case cmTarget::MODULE_LIBRARY:
+ return "_CREATE_SHARED_MODULE";
+ case cmTarget::EXECUTABLE:
+ return "_LINK_EXECUTABLE";
+ default:
+ break;
+ }
+ return "";
+}