summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-11-06 16:33:34 +0100
committerKai Koehne <kai.koehne@qt.io>2020-11-06 15:40:31 +0000
commitaec61987d9843c724141b99a4f18d2fafb788a99 (patch)
treee9286936957490f3cdece2220b92bb04798b7f92
parentcbf658dff28e20ae0f2b0dc87a931cf9444559b4 (diff)
CMake Build: Skip separate debug info for qdoc on MinGW
With MinGW 8.1.0 objcopy / strip fails when doing the separation of the debug information. See commit c3976188bd20a15a0 for the fix in lupdate. Change-Id: Ife60078e05f7b10a002a3337387e36d5fe18b822 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/qdoc/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qdoc/CMakeLists.txt b/src/qdoc/CMakeLists.txt
index 4283c448b..dd4819558 100644
--- a/src/qdoc/CMakeLists.txt
+++ b/src/qdoc/CMakeLists.txt
@@ -5,6 +5,11 @@ if(CMAKE_VERSION VERSION_LESS "3.19" AND MSVC AND CMAKE_GENERATOR STREQUAL "Ninj
message(WARNING "qdoc will not be built in this configuration.")
return()
endif()
+
+if (MINGW)
+ set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" PROPERTY _qt_skip_separate_debug_info ON)
+endif()
+
# special case end
#####################################################################