From 6ab55eddae26ff30b87b69b802945a745235e7e2 Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Fri, 17 Jul 2020 14:07:13 +0200 Subject: [PATCH] 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> --- src/gui/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.30.2