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

Method WriteImports

Source/cmVisualStudio10TargetGenerator.cxx:1198–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1196}
1197
1198void cmVisualStudio10TargetGenerator::WriteImports(Elem& e0)
1199{
1200 cmValue imports =
1201 this->GeneratorTarget->Target->GetProperty("VS_PROJECT_IMPORT");
1202 if (imports) {
1203 cmList argsSplit{ *imports };
1204 for (auto& path : argsSplit) {
1205 if (!cmsys::SystemTools::FileIsFullPath(path)) {
1206 path =
1207 cmStrCat(this->Makefile->GetCurrentSourceDirectory(), '/', path);
1208 }
1209 ConvertToWindowsSlash(path);
1210 Elem e1(e0, "Import");
1211 e1.Attribute("Project", path);
1212 }
1213 }
1214}
1215
1216void cmVisualStudio10TargetGenerator::WriteDotNetReferenceCustomTags(
1217 Elem& e2, std::string const& ref)

Callers 2

Calls 4

ConvertToWindowsSlashFunction · 0.85
AttributeMethod · 0.80
cmStrCatFunction · 0.70
GetPropertyMethod · 0.45

Tested by

no test coverage detected