diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-11-02 12:50:09 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-11-02 22:25:25 +0100 |
commit | c3976188bd20a15a0c67bf6abd4b08a5f26df67a (patch) | |
tree | 036e065061e4473fa6bdda7dc7ed4ff3254c4628 | |
parent | a3c448d2c7a12506e1f0a03f05f779ff71965022 (diff) | |
download | qttools-c3976188bd20a15a0c67bf6abd4b08a5f26df67a.tar.gz |
CMake Build: Skip separate debug info for lupdate on MinGW
With MinGW 8.1.0 objcopy / strip fails when doing the separation of
the debug information.
Fixes: QTBUG-87613
Change-Id: Ica3f11eaef0748fc300fdda6e57fa3db08b77908
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | src/linguist/lupdate/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linguist/lupdate/CMakeLists.txt b/src/linguist/lupdate/CMakeLists.txt index 846a345b3..20ce06939 100644 --- a/src/linguist/lupdate/CMakeLists.txt +++ b/src/linguist/lupdate/CMakeLists.txt @@ -5,6 +5,10 @@ if(CMAKE_VERSION VERSION_LESS "3.19" AND MSVC AND CMAKE_GENERATOR STREQUAL "Ninj message(WARNING "lupdate 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 ##################################################################### |