| 40 | } |
| 41 | |
| 42 | cmStateEnums::TargetType cmExportBuildFileGenerator::GetExportTargetType( |
| 43 | cmGeneratorTarget const* target) const |
| 44 | { |
| 45 | cmStateEnums::TargetType targetType = target->GetType(); |
| 46 | // An object library exports as an interface library if we cannot |
| 47 | // tell clients where to find the objects. This is sufficient |
| 48 | // to support transitive usage requirements on other targets that |
| 49 | // use the object library. |
| 50 | if (targetType == cmStateEnums::OBJECT_LIBRARY && |
| 51 | !target->Target->HasKnownObjectFileLocation(nullptr)) { |
| 52 | targetType = cmStateEnums::INTERFACE_LIBRARY; |
| 53 | } |
| 54 | return targetType; |
| 55 | } |
| 56 | |
| 57 | void cmExportBuildFileGenerator::SetExportSet(cmExportSet* exportSet) |
| 58 | { |
no test coverage detected