diff --git a/DeployMacros.cmake b/DeployMacros.cmake index 937dbf8..aa69883 100644 --- a/DeployMacros.cmake +++ b/DeployMacros.cmake @@ -730,11 +730,9 @@ macro(deploy_target _T) if (_ZIP_DMG) set(_cmd_gen_dmg ${_cmd_gen_dmg} COMMAND cd "${_DESTINATION}" "&&" zip -q -r "${_dmg_name}.zip" "${_dmg_name}") set(_cmd_gen_dmg ${_cmd_gen_dmg} COMMAND rm "\"${_DESTINATION}/${_dmg_name}\"") + set(_TARGET_PACKAGE "${_dmg_name}.zip") endif() - set(_comment "Generating ${_dmg_name}") - if (_ZIP_DMG) - set(_comment "${_comment}.zip") - endif() + set(_comment "Generating ${_TARGET_PACKAGE}") add_custom_target(deploy_${_T} # gather .app dir COMMAND mkdir ${_VERB} -p "${_res_path}"