| 3982 | } |
| 3983 | |
| 3984 | bool cmGeneratorTarget::LinkerEnforcesNoAllowShLibUndefined( |
| 3985 | std::string const& config) const |
| 3986 | { |
| 3987 | // FIXME(#25486): Account for the LINKER_TYPE target property. |
| 3988 | // Also factor out the hard-coded list below into a platform |
| 3989 | // information table based on the linker id. |
| 3990 | std::string ll = this->GetLinkerLanguage(config); |
| 3991 | std::string linkerIdVar = cmStrCat("CMAKE_", ll, "_COMPILER_LINKER_ID"); |
| 3992 | cmValue linkerId = this->Makefile->GetDefinition(linkerIdVar); |
| 3993 | // The GNU bfd-based linker may enforce '--no-allow-shlib-undefined' |
| 3994 | // recursively by default. The Solaris linker has similar behavior. |
| 3995 | return linkerId && (*linkerId == "GNU" || *linkerId == "Solaris"); |
| 3996 | } |
| 3997 | |
| 3998 | std::string cmGeneratorTarget::GetPDBOutputName( |
| 3999 | std::string const& config) const |
no test coverage detected