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

Method InitializeInternal

Source/CPack/cmCPackBundleGenerator.cxx:18–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16cmCPackBundleGenerator::~cmCPackBundleGenerator() = default;
17
18int cmCPackBundleGenerator::InitializeInternal()
19{
20 cmValue name = this->GetOption("CPACK_BUNDLE_NAME");
21 if (!name) {
22 cmCPackLogger(cmCPackLog::LOG_ERROR,
23 "CPACK_BUNDLE_NAME must be set to use the Bundle generator."
24 << std::endl);
25
26 return 0;
27 }
28
29 if (this->GetOption("CPACK_BUNDLE_APPLE_CERT_APP")) {
30 std::string const codesign_path = cmSystemTools::FindProgram("codesign");
31
32 if (codesign_path.empty()) {
33 cmCPackLogger(cmCPackLog::LOG_ERROR,
34 "Cannot locate codesign command" << std::endl);
35 return 0;
36 }
37 this->SetOptionIfNotSet("CPACK_COMMAND_CODESIGN", codesign_path);
38 }
39
40 return this->Superclass::InitializeInternal();
41}
42
43char const* cmCPackBundleGenerator::GetPackagingInstallPrefix()
44{

Callers

nothing calls this directly

Calls 3

GetOptionMethod · 0.45
emptyMethod · 0.45
SetOptionIfNotSetMethod · 0.45

Tested by

no test coverage detected