From f9d680d7bc782dd01b12a3750478e93d77b51df7 Mon Sep 17 00:00:00 2001 From: Shane King Date: Wed, 12 Dec 2007 01:14:39 +0000 Subject: Fix for mingw to ensure -DQT_NO_DEBUG is set so plugins may load correctly with QPluginLoader. svn path=/trunk/KDE/kdelibs/; revision=747449 --- modules/FindKDE4Internal.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') 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) -- cgit v1.2.1