| 386 | } |
| 387 | |
| 388 | std::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 | |
| 414 | std::string cmGeneratorTarget::GetFrameworkMultiConfigPostfix( |
| 415 | std::string const& config) const |
no test coverage detected