From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Fri, 17 Jul 2020 12:07:13 +0000 (+0200) Subject: Add -no-strip cmd line arg to macdeployqt if when building with Debug profile X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6ab55eddae26ff30b87b69b802945a745235e7e2;p=nextcloud-desktop.git Add -no-strip cmd line arg to macdeployqt if when building with Debug profile Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 57c876c33..2f1e99e2b 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -395,12 +395,19 @@ if(BUILD_OWNCLOUD_OSX_BUNDLE AND NOT BUILD_LIBRARIES_ONLY) set(cmd_NAME ${APPLICATION_EXECUTABLE}cmd) + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(NO_STRIP "-no-strip") + else() + set(NO_STRIP "") + endif() + add_custom_command(TARGET ${APPLICATION_EXECUTABLE} POST_BUILD COMMAND "${MACDEPLOYQT_EXECUTABLE}" "$/../.." -qmldir=${CMAKE_SOURCE_DIR}/src/gui -always-overwrite -executable="$/${cmd_NAME}" + ${NO_STRIP} COMMENT "Running macdeployqt..." ) endif()