summaryrefslogtreecommitdiffstats
path: root/cmake/QtToolHelpers.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-11-02 12:40:57 +0100
committerCristian Adam <cristian.adam@qt.io>2020-11-04 01:41:06 +0100
commit68f3e37449223466723a1ebc5b4f712634f993ac (patch)
treee74e4b42139499882c61de4832f086bf7569bc75 /cmake/QtToolHelpers.cmake
parentf6418343f1f8c08654f30191c1d8059761a016eb (diff)
CMake Build: Enable separate debug info for all target types
Now all shared libraries and executables will get .debug files on the platforms that support FEATURE_separate_debug_info With the directory property _qt_skip_separate_debug_info certain targets can retain the debug symbols in the binary e.g. lupdate with MinGW 8.1.0 will cause objcopy / strip to fail. Fixes: QTBUG-87015 Change-Id: I03b106e68ef0a42011d1ba641e6f686b2e7b7fb4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtToolHelpers.cmake')
-rw-r--r--cmake/QtToolHelpers.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/QtToolHelpers.cmake b/cmake/QtToolHelpers.cmake
index 06bf171454..a54fbfa3de 100644
--- a/cmake/QtToolHelpers.cmake
+++ b/cmake/QtToolHelpers.cmake
@@ -206,9 +206,7 @@ function(qt_internal_add_tool target_name)
endif()
- if(QT_FEATURE_separate_debug_info AND (UNIX OR MINGW))
- qt_enable_separate_debug_info(${target_name} ${INSTALL_BINDIR})
- endif()
+ qt_enable_separate_debug_info(${target_name} "${INSTALL_BINDIR}")
qt_internal_install_pdb_files(${target_name} "${INSTALL_BINDIR}")
endfunction()