diff options
-rw-r--r-- | modules/FindKDE4Internal.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 011d657a..3eef2756 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -827,6 +827,12 @@ if (CMAKE_COMPILER_IS_GNUCXX) add_definitions (-D_BSD_SOURCE) 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 + add_definitions(-DQT_NO_DEBUG) + endif (WIN32) check_cxx_compiler_flag(-fPIE HAVE_FPIE_SUPPORT) if(KDE4_ENABLE_FPIE) |