MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteLinkOptions

Method WriteLinkOptions

Source/cmVisualStudio10TargetGenerator.cxx:4789–4812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4787}
4788
4789void 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
4814void cmVisualStudio10TargetGenerator::AddLibraries(
4815 cmComputeLinkInformation const& cli, std::vector<std::string>& libVec,

Callers 1

Calls 5

GetTypeMethod · 0.45
OutputFlagMapMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected