Browse Source

cmLinkItem: Remove incorrect CMP0003_ prefix on function

The `ComputeLinkType` function is not related to CMP0003.
Brad King 1 year ago
parent
commit
ad3ae50adf
3 changed files with 3 additions and 4 deletions
  1. 1 1
      Source/cmComputeLinkDepends.cxx
  2. 1 2
      Source/cmGeneratorTarget_Link.cxx
  3. 1 1
      Source/cmLinkItem.h

+ 1 - 1
Source/cmComputeLinkDepends.cxx

@@ -610,7 +610,7 @@ cmComputeLinkDepends::cmComputeLinkDepends(const cmGeneratorTarget* target,
   , DebugMode(this->Makefile->IsOn("CMAKE_LINK_DEPENDS_DEBUG_MODE") ||
               this->Target->GetProperty("LINK_DEPENDS_DEBUG_MODE").IsOn())
   , LinkLanguage(linkLanguage)
-  , LinkType(CMP0003_ComputeLinkType(
+  , LinkType(ComputeLinkType(
       this->Config, this->Makefile->GetCMakeInstance()->GetDebugConfigs()))
   , Strategy(strategy)
 

+ 1 - 2
Source/cmGeneratorTarget_Link.cxx

@@ -1449,8 +1449,7 @@ void cmGeneratorTarget::ComputeLinkImplementationLibraries(
   std::vector<std::string> debugConfigs =
     this->Makefile->GetCMakeInstance()->GetDebugConfigs();
 
-  cmTargetLinkLibraryType linkType =
-    CMP0003_ComputeLinkType(config, debugConfigs);
+  cmTargetLinkLibraryType linkType = ComputeLinkType(config, debugConfigs);
   cmTarget::LinkLibraryVectorType const& oldllibs =
     this->Target->GetOriginalLinkLibraries();
 

+ 1 - 1
Source/cmLinkItem.h

@@ -153,7 +153,7 @@ struct cmOptionalLinkImplementation : public cmLinkImplementation
 };
 
 /** Compute the link type to use for the given configuration.  */
-inline cmTargetLinkLibraryType CMP0003_ComputeLinkType(
+inline cmTargetLinkLibraryType ComputeLinkType(
   const std::string& config, std::vector<std::string> const& debugConfigs)
 {
   // No configuration is always optimized.