| 16 | cmCPackBundleGenerator::~cmCPackBundleGenerator() = default; |
| 17 | |
| 18 | int 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 | |
| 43 | char const* cmCPackBundleGenerator::GetPackagingInstallPrefix() |
| 44 | { |
nothing calls this directly
no test coverage detected