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

Method GetArchiveFileName

Source/CPack/cmCPackArchiveGenerator.cxx:270–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268cmCPackArchiveGenerator::~cmCPackArchiveGenerator() = default;
269
270std::string cmCPackArchiveGenerator::GetArchiveFileName()
271{
272 std::string packageFileName = this->toplevel + "/";
273 if (cmValue v = this->GetOptionIfSet("CPACK_ARCHIVE_FILE_NAME")) {
274 packageFileName += *v;
275 } else {
276 v = this->GetOption("CPACK_PACKAGE_FILE_NAME");
277 packageFileName += *v;
278 }
279 packageFileName += this->GetOutputExtension();
280 return packageFileName;
281}
282
283std::string cmCPackArchiveGenerator::GetArchiveComponentFileName(
284 std::string const& component, bool isGroupName)

Callers 2

PackageFilesMethod · 0.95

Calls 3

GetOutputExtensionMethod · 0.95
GetOptionIfSetMethod · 0.80
GetOptionMethod · 0.45

Tested by

no test coverage detected