| 4787 | } |
| 4788 | |
| 4789 | void cmVisualStudio10TargetGenerator::WriteLinkOptions( |
| 4790 | Elem& e1, std::string const& config) |
| 4791 | { |
| 4792 | if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY || |
| 4793 | this->GeneratorTarget->GetType() > cmStateEnums::MODULE_LIBRARY) { |
| 4794 | return; |
| 4795 | } |
| 4796 | if (this->ProjectType == VsProjectType::csproj) { |
| 4797 | return; |
| 4798 | } |
| 4799 | |
| 4800 | { |
| 4801 | Elem e2(e1, "Link"); |
| 4802 | OptionsHelper linkOptions(*(this->LinkOptions[config]), e2); |
| 4803 | linkOptions.PrependInheritedString("AdditionalOptions"); |
| 4804 | linkOptions.OutputFlagMap(); |
| 4805 | } |
| 4806 | |
| 4807 | if (!this->GlobalGenerator->NeedLinkLibraryDependencies( |
| 4808 | this->GeneratorTarget)) { |
| 4809 | Elem e2(e1, "ProjectReference"); |
| 4810 | e2.Element("LinkLibraryDependencies", "false"); |
| 4811 | } |
| 4812 | } |
| 4813 | |
| 4814 | void cmVisualStudio10TargetGenerator::AddLibraries( |
| 4815 | cmComputeLinkInformation const& cli, std::vector<std::string>& libVec, |
no test coverage detected