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

Method AddGeneratedPackageNames

Source/CPack/cmCPackRPMGenerator.cxx:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void cmCPackRPMGenerator::AddGeneratedPackageNames()
50{
51 // add the generated packages to package file names list
52 std::string fileNames(this->GetOption("GEN_CPACK_OUTPUT_FILES"));
53 char const sep = ';';
54 std::string::size_type pos1 = 0;
55 std::string::size_type pos2 = fileNames.find(sep, pos1 + 1);
56 while (pos2 != std::string::npos) {
57 this->packageFileNames.push_back(fileNames.substr(pos1, pos2 - pos1));
58 pos1 = pos2 + 1;
59 pos2 = fileNames.find(sep, pos1 + 1);
60 }
61 this->packageFileNames.push_back(fileNames.substr(pos1, pos2 - pos1));
62}
63
64int cmCPackRPMGenerator::PackageOnePack(std::string const& initialToplevel,
65 std::string const& packageName)

Callers 2

PackageComponentsMethod · 0.95

Calls 4

push_backMethod · 0.80
GetOptionMethod · 0.45
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected