diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -341,6 +341,14 @@ MACOSX_PACKAGE_LOCATION "Resources/${INFO_PLIST_STRINGS_FILE}" ) + # Always strip the application bundle binary. + # Note that the arguments to the `strip` command are OSX specific. + add_custom_command( + TARGET BitcoinABC-Qt + POST_BUILD + COMMAND "${CMAKE_STRIP}" -u -r "$" + ) + include(DoOrFail) find_program_or_fail(CMAKE_INSTALL_NAME_TOOL "install_name_tool") find_program_or_fail(CMAKE_OTOOL "otool")