summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-08 19:02:11 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-09 13:50:06 (GMT)
commitabfa5f2d1fac0a55b430e078884ad1ae252d20cd (patch)
treee05d7c801401e2a38847e269c02d1a710f9ef9e0 /Source/cmCommonTargetGenerator.cxx
parent9d41f6d87b28c46d8a6d52f2de91976819e6b4d0 (diff)
downloadCMake-abfa5f2d1fac0a55b430e078884ad1ae252d20cd.zip
CMake-abfa5f2d1fac0a55b430e078884ad1ae252d20cd.tar.gz
CMake-abfa5f2d1fac0a55b430e078884ad1ae252d20cd.tar.bz2
cmCommonTargetGenerator: Adopt ConfigName member
De-duplicate the member from the Makefile and Ninja target generators.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r--Source/cmCommonTargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx
index 9d10e39..3edeff3 100644
--- a/Source/cmCommonTargetGenerator.cxx
+++ b/Source/cmCommonTargetGenerator.cxx
@@ -23,9 +23,15 @@ cmCommonTargetGenerator::cmCommonTargetGenerator(cmGeneratorTarget* gt)
, LocalGenerator(static_cast<cmLocalCommonGenerator*>(gt->LocalGenerator))
, GlobalGenerator(static_cast<cmGlobalCommonGenerator*>(
gt->LocalGenerator->GetGlobalGenerator()))
+ , ConfigName(LocalGenerator->GetConfigName())
{
}
cmCommonTargetGenerator::~cmCommonTargetGenerator()
{
}
+
+std::string const& cmCommonTargetGenerator::GetConfigName() const
+{
+ return this->ConfigName;
+}