Compute the link type to use for the given configuration. */
| 138 | |
| 139 | /** Compute the link type to use for the given configuration. */ |
| 140 | inline 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. |
| 158 | cm::optional<std::string> ParseLinkFeature(std::string const& item); |
no test coverage detected
searching dependent graphs…