diff options
author | Shane King <kde@dontletsstart.com> | 2007-12-12 01:14:39 +0000 |
---|---|---|
committer | Shane King <kde@dontletsstart.com> | 2007-12-12 01:14:39 +0000 |
commit | f9d680d7bc782dd01b12a3750478e93d77b51df7 (patch) | |
tree | d745c2c3ccac00cdfce6da7c13d8509339b9e7d4 /modules/FindKDE4Internal.cmake | |
parent | 21528e8e557324515b5e773188cebc1558cacc66 (diff) | |
download | extra-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.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) |