From 5a2b208617d13808287b3c785183fed9c99576f1 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Thu, 23 Jun 2011 10:08:28 -0600 Subject: [PATCH] Add -DQT_NO_DEBUG if no build type is specified so Qt plugins will work. --- Modules/UseQt4.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/UseQt4.cmake b/Modules/UseQt4.cmake index 9ce475cb7..dbe28ac54 100644 --- a/Modules/UseQt4.cmake +++ b/Modules/UseQt4.cmake @@ -21,6 +21,9 @@ SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG QT_DEBUG) SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG) SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG) SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG) +IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_DEBUG) +ENDIF() INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})