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

Method cmVisualStudio10TargetGenerator

Source/cmVisualStudio10TargetGenerator.cxx:276–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator(
277 cmGeneratorTarget* target, cmGlobalVisualStudio10Generator* gg)
278 : GeneratorTarget(target)
279 , Makefile(target->Target->GetMakefile())
280 , Platform(gg->GetPlatformName())
281 , Name(target->GetName())
282 , GUID(gg->GetGUID(this->Name))
283 , GlobalGenerator(gg)
284 , LocalGenerator(
285 (cmLocalVisualStudio10Generator*)target->GetLocalGenerator())
286{
287 this->Configurations =
288 this->Makefile->GetGeneratorConfigs(cmMakefile::ExcludeEmptyConfig);
289 this->NsightTegra = gg->IsNsightTegra();
290 this->Android = gg->TargetsAndroid();
291 this->WindowsKernelMode = gg->TargetsWindowsKernelModeDriver();
292 auto scanProp = target->GetProperty("CXX_SCAN_FOR_MODULES");
293 for (auto const& config : this->Configurations) {
294 if (scanProp.IsSet()) {
295 this->ScanSourceForModuleDependencies[config] = scanProp.IsOn();
296 } else {
297 this->ScanSourceForModuleDependencies[config] =
298 target->NeedCxxDyndep(config) ==
299 cmGeneratorTarget::CxxModuleSupport::Enabled;
300 }
301 }
302 for (unsigned int& version : this->NsightTegraVersion) {
303 version = 0;
304 }
305 sscanf(gg->GetNsightTegraVersion().c_str(), "%u.%u.%u.%u",
306 &this->NsightTegraVersion[0], &this->NsightTegraVersion[1],
307 &this->NsightTegraVersion[2], &this->NsightTegraVersion[3]);
308 this->MSTools = !this->NsightTegra && !this->Android;
309 this->DefaultArtifactDir = this->GeneratorTarget->GetSupportDirectory();
310 this->InSourceBuild = (this->Makefile->GetCurrentSourceDirectory() ==
311 this->Makefile->GetCurrentBinaryDirectory());
312 this->ClassifyAllConfigSources();
313}
314
315cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() = default;
316

Callers

nothing calls this directly

Calls 15

GetGeneratorConfigsMethod · 0.80
IsNsightTegraMethod · 0.80
TargetsAndroidMethod · 0.80
NeedCxxDyndepMethod · 0.80
c_strMethod · 0.80
GetNsightTegraVersionMethod · 0.80
GetSupportDirectoryMethod · 0.80
GetMakefileMethod · 0.45
GetNameMethod · 0.45
GetGUIDMethod · 0.45

Tested by

no test coverage detected