diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-19 22:57:35 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-20 22:52:22 (GMT) |
commit | 91411641a7b8029d05899b11590fb4e676716a85 (patch) | |
tree | 0e550426997002746803ce767d882f91afb9ead3 /Source/cmTarget.cxx | |
parent | 6d94078e623d5f1316f1972ffda06ac1d66b6f2f (diff) | |
download | CMake-91411641a7b8029d05899b11590fb4e676716a85.zip CMake-91411641a7b8029d05899b11590fb4e676716a85.tar.gz CMake-91411641a7b8029d05899b11590fb4e676716a85.tar.bz2 |
Move ComputeLinkType out of cmTarget.
Keep it out of the way, so that it does not become part of cmGeneratorTarget,
but where it can be used to implement CMP0003.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 63d3d07..0d8c57d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -583,31 +583,6 @@ const std::vector<std::string>& cmTarget::GetLinkDirectories() const } //---------------------------------------------------------------------------- -cmTargetLinkLibraryType cmTarget::ComputeLinkType( - const std::string& config) const -{ - // No configuration is always optimized. - if(config.empty()) - { - return OPTIMIZED_LibraryType; - } - - // Get the list of configurations considered to be DEBUG. - std::vector<std::string> debugConfigs = - this->Makefile->GetCMakeInstance()->GetDebugConfigs(); - - // Check if any entry in the list matches this configuration. - std::string configUpper = cmSystemTools::UpperCase(config); - if (std::find(debugConfigs.begin(), debugConfigs.end(), configUpper) != - debugConfigs.end()) - { - return DEBUG_LibraryType; - } - // The current configuration is not a debug configuration. - return OPTIMIZED_LibraryType; -} - -//---------------------------------------------------------------------------- void cmTarget::ClearDependencyInformation( cmMakefile& mf, const std::string& target ) { |