summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-04-28 19:31:51 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-04-30 10:13:22 +0200
commit49212cb55a4058f7d8c2f54492e2cf1112e37a09 (patch)
treeb3aeb74c6280bb4550cf56e67a2ff0a6cea988ef
parent39090ea15c41eded8a233ec2633c0c657280297c (diff)
CMake: Fix build of qlogging test on MinGW
The linker doesn't have a -rdynamic option. Otherwise the build fails with g++.exe error unrecognized command line option '-rdynamic' Task-number: QTBUG-75578 Change-Id: Ie89a19fd25e90bef14e64d1d98fd973fa0315997 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--tests/auto/corelib/global/qlogging/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/global/qlogging/CMakeLists.txt b/tests/auto/corelib/global/qlogging/CMakeLists.txt
index bd0ab6aeca..7c74656215 100644
--- a/tests/auto/corelib/global/qlogging/CMakeLists.txt
+++ b/tests/auto/corelib/global/qlogging/CMakeLists.txt
@@ -8,7 +8,7 @@ if(NOT WINRT)
#special case begin
# Fixes required for the backtrace stack to be correct
- if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
+ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND NOT MINGW)
target_link_options(qlogging_helper PRIVATE -rdynamic)
endif()
set_target_properties(qlogging_helper PROPERTIES CXX_VISIBILITY_PRESET default)