aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKDE4Internal.cmake
diff options
context:
space:
mode:
authorShane King <kde@dontletsstart.com>2007-12-12 01:14:39 +0000
committerShane King <kde@dontletsstart.com>2007-12-12 01:14:39 +0000
commitf9d680d7bc782dd01b12a3750478e93d77b51df7 (patch)
treed745c2c3ccac00cdfce6da7c13d8509339b9e7d4 /modules/FindKDE4Internal.cmake
parent21528e8e557324515b5e773188cebc1558cacc66 (diff)
downloadextra-cmake-modules-f9d680d7bc782dd01b12a3750478e93d77b51df7.tar.gz
extra-cmake-modules-f9d680d7bc782dd01b12a3750478e93d77b51df7.tar.bz2
Fix for mingw to ensure -DQT_NO_DEBUG is set so plugins may load correctly with QPluginLoader.
svn path=/trunk/KDE/kdelibs/; revision=747449
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r--modules/FindKDE4Internal.cmake6
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)