| 5510 | } |
| 5511 | |
| 5512 | bool cmGeneratorTarget::HasImportLibrary(std::string const& config) const |
| 5513 | { |
| 5514 | bool generate_Stubs = true; |
| 5515 | if (this->GetGlobalGenerator()->IsXcode()) { |
| 5516 | // take care of CMAKE_XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS variable |
| 5517 | // as well as XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS property |
| 5518 | if (cmValue propGenStubs = |
| 5519 | this->GetProperty("XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS")) { |
| 5520 | generate_Stubs = propGenStubs == "YES"; |
| 5521 | } else if (cmValue varGenStubs = this->Makefile->GetDefinition( |
| 5522 | "CMAKE_XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS")) { |
| 5523 | generate_Stubs = varGenStubs == "YES"; |
| 5524 | } |
| 5525 | } |
| 5526 | |
| 5527 | return (this->IsDLLPlatform() && |
| 5528 | (this->GetType() == cmStateEnums::SHARED_LIBRARY || |
| 5529 | this->IsExecutableWithExports()) && |
| 5530 | // Assemblies which have only managed code do not have |
| 5531 | // import libraries. |
| 5532 | this->GetManagedType(config) != ManagedType::Managed) || |
| 5533 | (this->IsAIX() && this->IsExecutableWithExports()) || |
| 5534 | (this->Makefile->PlatformSupportsAppleTextStubs() && |
| 5535 | this->IsSharedLibraryWithExports() && generate_Stubs); |
| 5536 | } |
| 5537 | |
| 5538 | bool cmGeneratorTarget::NeedImportLibraryName(std::string const& config) const |
| 5539 | { |
no test coverage detected