diff --git a/cmake/QtSeparateDebugInfo.cmake b/cmake/QtSeparateDebugInfo.cmake index dff64937f17..77d3a428252 100644 --- a/cmake/QtSeparateDebugInfo.cmake +++ b/cmake/QtSeparateDebugInfo.cmake @@ -286,9 +286,11 @@ function(qt_enable_separate_debug_info target installDestination) set(BUNDLE_ID ${target}) endif() + get_target_property(is_bundle ${target} MACOSX_BUNDLE) + if (NOT "x${arg_DSYM_OUTPUT_DIR}" STREQUAL "x") set(debug_info_bundle_dir "${arg_DSYM_OUTPUT_DIR}/${target}") - elseif(is_framework) + elseif(is_framework OR is_bundle) set(debug_info_bundle_dir "$") else() set(debug_info_bundle_dir "$")