diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -336,6 +336,11 @@ MACOSX_PACKAGE_LOCATION "Resources/${INFO_PLIST_STRINGS_FILE}" ) + add_custom_target(BitcoinABC-Qt-strip + COMMAND "${CMAKE_STRIP}" -u -r "$" + ) + add_dependencies(BitcoinABC-Qt-strip BitcoinABC-Qt) + include(DoOrFail) find_program_or_fail(CMAKE_INSTALL_NAME_TOOL "install_name_tool") find_program_or_fail(CMAKE_OTOOL "otool") @@ -407,7 +412,7 @@ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" DEPENDS - BitcoinABC-Qt + BitcoinABC-Qt-strip ) # Building the DMG background image requires several steps: @@ -523,7 +528,7 @@ DEPENDS "${BACKGROUND_TIFF_MULTIRES}" ) - add_dependencies(osx-dmg BitcoinABC-Qt) + add_dependencies(osx-dmg BitcoinABC-Qt-strip) endif() endif()