diff --git a/CMakeLists.txt b/CMakeLists.txt index d3c1812d74c7..cfa5abf9c93e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,8 +298,8 @@ endif() if (MACOS) install(CODE "file(MAKE_DIRECTORY package)") install(CODE "execute_process(COMMAND rsync -a --delete QGroundControl.app package)") - install(CODE "file(REMOVE /tmp/tmp.dmg QGroundControl.dmg)") + install(CODE "file(REMOVE /tmp/tmp.dmg package/QGroundControl.dmg)") install(CODE "execute_process(COMMAND hdiutil create /tmp/tmp.dmg -ov -volname QGroundControl -fs HFS+ -srcfolder package)") - install(CODE "execute_process(COMMAND hdiutil convert /tmp/tmp.dmg -format UDBZ -o QGroundControl.dmg)") + install(CODE "execute_process(COMMAND hdiutil convert /tmp/tmp.dmg -format UDBZ -o package/QGroundControl.dmg)") install(CODE "file(REMOVE /tmp/tmp.dmg)") endif()