aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindKDE4Internal.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 3eef2756..89c7c6fc 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -828,9 +828,10 @@ if (CMAKE_COMPILER_IS_GNUCXX)
endif (CMAKE_SYSTEM_NAME MATCHES Linux)
if (WIN32)
- # qt is always compiled with QT_NO_DEBUG under mingw,
- # so we need to compile stuff linked against it
- # the same or otherwise QPluginLoader rejects plugins
+ # we always link against the release version of QT with mingw
+ # (even for debug builds). So we need to define QT_NO_DEBUG
+ # or else QPluginLoader rejects plugins because it thinks
+ # they're built against the wrong QT.
add_definitions(-DQT_NO_DEBUG)
endif (WIN32)