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

Method GetOrCreateSource

Source/cmMakefile.cxx:3109–3117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3107}
3108
3109cmSourceFile* cmMakefile::GetOrCreateSource(std::string const& sourceName,
3110 bool generated,
3111 cmSourceFileLocationKind kind)
3112{
3113 if (cmSourceFile* esf = this->GetSource(sourceName, kind)) {
3114 return esf;
3115 }
3116 return this->CreateSource(sourceName, generated, kind);
3117}
3118
3119cmSourceFile* cmMakefile::GetOrCreateGeneratedSource(
3120 std::string const& sourceName)

Callers 15

AddTargetObjectMethod · 0.95
addFileSetEntryFunction · 0.80
processSourcesFunction · 0.80
ComputeKindedSourcesMethod · 0.80
AddXCodeProjBuildRuleMethod · 0.80
CreateXCodeTargetMethod · 0.80
ForceLinkerLanguageMethod · 0.80
CreateGroupsMethod · 0.80
HandleSourceModeFunction · 0.80
AddPchDependenciesMethod · 0.80

Calls 2

GetSourceMethod · 0.95
CreateSourceMethod · 0.95

Tested by 1

cmCreateTestSourceListFunction · 0.64