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

Method GetFilePostfix

Source/cmGeneratorTarget.cxx:388–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388std::string cmGeneratorTarget::GetFilePostfix(std::string const& config) const
389{
390 cmValue postfix = nullptr;
391 std::string frameworkPostfix;
392 if (!config.empty()) {
393 std::string configProp =
394 cmStrCat(cmSystemTools::UpperCase(config), "_POSTFIX");
395 postfix = this->GetProperty(configProp);
396
397 // Mac application bundles and frameworks have no regular postfix like
398 // libraries do.
399 if (!this->IsImported() && postfix &&
400 (this->IsAppBundleOnApple() || this->IsFrameworkOnApple())) {
401 postfix = nullptr;
402 }
403
404 // Frameworks created by multi config generators can have a special
405 // framework postfix.
406 frameworkPostfix = this->GetFrameworkMultiConfigPostfix(config);
407 if (!frameworkPostfix.empty()) {
408 postfix = cmValue(frameworkPostfix);
409 }
410 }
411 return postfix ? *postfix : std::string();
412}
413
414std::string cmGeneratorTarget::GetFrameworkMultiConfigPostfix(
415 std::string const& config) const

Callers 10

GetPDBOutputNameMethod · 0.95
GetPDBNameMethod · 0.95
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
GetMethod · 0.80
WriteLinkStatementMethod · 0.80

Calls 8

GetPropertyMethod · 0.95
IsImportedMethod · 0.95
IsAppBundleOnAppleMethod · 0.95
IsFrameworkOnAppleMethod · 0.95
cmStrCatFunction · 0.70
cmValueClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected