MCPcopy Create free account
hub / github.com/Kitware/CMake / ComputeLinkType

Function ComputeLinkType

Source/cmLinkItem.h:140–155  ·  view source on GitHub ↗

Compute the link type to use for the given configuration. */

Source from the content-addressed store, hash-verified

138
139/** Compute the link type to use for the given configuration. */
140inline cmTargetLinkLibraryType ComputeLinkType(
141 std::string const& config, std::vector<std::string> const& debugConfigs)
142{
143 // No configuration is always optimized.
144 if (config.empty()) {
145 return OPTIMIZED_LibraryType;
146 }
147
148 // Check if any entry in the list matches this configuration.
149 std::string configUpper = cmSystemTools::UpperCase(config);
150 if (cm::contains(debugConfigs, configUpper)) {
151 return DEBUG_LibraryType;
152 }
153 // The current configuration is not a debug configuration.
154 return OPTIMIZED_LibraryType;
155}
156
157// Parse LINK_LIBRARY genex markers.
158cm::optional<std::string> ParseLinkFeature(std::string const& item);

Callers 2

cmComputeLinkDependsMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…