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

Method GetArchiveComponentFileName

Source/CPack/cmCPackArchiveGenerator.cxx:283–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283std::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
306int cmCPackArchiveGenerator::InitializeInternal()
307{

Callers 1

PackageComponentsMethod · 0.95

Calls 4

GetOutputExtensionMethod · 0.95
GetOptionIfSetMethod · 0.80
GetOptionMethod · 0.45

Tested by

no test coverage detected