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

Method GetExportName

Source/cmGeneratorTarget.cxx:202–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202std::string cmGeneratorTarget::GetExportName() const
203{
204 cmValue exportName = this->GetProperty("EXPORT_NAME");
205
206 if (cmNonempty(exportName)) {
207 if (!cmGeneratorExpression::IsValidTargetName(*exportName)) {
208 std::ostringstream e;
209 e << "EXPORT_NAME property \"" << *exportName << "\" for \""
210 << this->GetName() << "\": is not valid.";
211 cmSystemTools::Error(e.str());
212 return "";
213 }
214 return *exportName;
215 }
216 return this->GetName();
217}
218
219std::string cmGeneratorTarget::GetFilesystemExportName() const
220{

Callers 15

HandleMissingTargetMethod · 0.80
HandleMissingTargetMethod · 0.80
AddTargetNamespaceMethod · 0.80
NoteLinkedTargetMethod · 0.80
CheckDefaultTargetsMethod · 0.80
GenerateImportTargetMethod · 0.80
NoteLinkedTargetMethod · 0.80

Calls 5

GetPropertyMethod · 0.95
cmNonemptyFunction · 0.85
strMethod · 0.80
ErrorClass · 0.70
GetNameMethod · 0.45

Tested by

no test coverage detected