| 281 | } |
| 282 | |
| 283 | std::string cmCPackArchiveGenerator::GetArchiveComponentFileName( |
| 284 | std::string const& component, bool isGroupName) |
| 285 | { |
| 286 | std::string componentUpper(cmSystemTools::UpperCase(component)); |
| 287 | std::string packageFileName; |
| 288 | |
| 289 | if (cmValue v = this->GetOptionIfSet("CPACK_ARCHIVE_" + componentUpper + |
| 290 | "_FILE_NAME")) { |
| 291 | packageFileName += *v; |
| 292 | } else if ((v = this->GetOptionIfSet("CPACK_ARCHIVE_FILE_NAME"))) { |
| 293 | packageFileName += |
| 294 | this->GetComponentPackageFileName(*v, component, isGroupName); |
| 295 | } else { |
| 296 | v = this->GetOption("CPACK_PACKAGE_FILE_NAME"); |
| 297 | packageFileName += |
| 298 | this->GetComponentPackageFileName(*v, component, isGroupName); |
| 299 | } |
| 300 | |
| 301 | packageFileName += this->GetOutputExtension(); |
| 302 | |
| 303 | return packageFileName; |
| 304 | } |
| 305 | |
| 306 | int cmCPackArchiveGenerator::InitializeInternal() |
| 307 | { |
no test coverage detected