diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-05 15:37:49 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-26 17:46:31 (GMT) |
commit | 83981cf5931aaa2d9bbf4f99ea55c99736173fdf (patch) | |
tree | 3695feb292c767150e28d9cbca058872b7070203 /Source/cmTarget.cxx | |
parent | 771e79a2bf97e2e5de40106396358adc773014f1 (diff) | |
download | CMake-83981cf5931aaa2d9bbf4f99ea55c99736173fdf.zip CMake-83981cf5931aaa2d9bbf4f99ea55c99736173fdf.tar.gz CMake-83981cf5931aaa2d9bbf4f99ea55c99736173fdf.tar.bz2 |
cmTarget: Add GetLinkImplMap method.
This is a temporary refactoring artifact.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0be3eb1..2e37c08 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -3574,10 +3574,7 @@ cmTarget::GetLinkImplementation(const std::string& config) const return 0; } - // Populate the link implementation for this configuration. - std::string CONFIG = cmSystemTools::UpperCase(config); - cmOptionalLinkImplementation& - impl = this->Internal->LinkImplMap[CONFIG][this]; + cmOptionalLinkImplementation& impl = this->GetLinkImplMap(config); if(!impl.LibrariesDone) { impl.LibrariesDone = true; @@ -3591,6 +3588,14 @@ cmTarget::GetLinkImplementation(const std::string& config) const return &impl; } +cmOptionalLinkImplementation& +cmTarget::GetLinkImplMap(std::string const& config) const +{ + // Populate the link implementation for this configuration. + std::string CONFIG = cmSystemTools::UpperCase(config); + return Internal->LinkImplMap[CONFIG][this]; +} + //---------------------------------------------------------------------------- cmLinkImplementationLibraries const* cmTarget::GetLinkImplementationLibraries(const std::string& config) const |