diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2011-06-23 16:08:28 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2011-06-23 16:08:28 (GMT) |
commit | 5a2b208617d13808287b3c785183fed9c99576f1 (patch) | |
tree | 0a5fad8a6cb76a94c097ce3f86009731f257c512 /Modules/UseQt4.cmake | |
parent | 672b6ca5e431f511f2638511b0128b6956f3e3ad (diff) | |
download | CMake-5a2b208617d13808287b3c785183fed9c99576f1.zip CMake-5a2b208617d13808287b3c785183fed9c99576f1.tar.gz CMake-5a2b208617d13808287b3c785183fed9c99576f1.tar.bz2 |
Add -DQT_NO_DEBUG if no build type is specified so Qt plugins will work.
Diffstat (limited to 'Modules/UseQt4.cmake')
-rw-r--r-- | Modules/UseQt4.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/UseQt4.cmake b/Modules/UseQt4.cmake index 9ce475c..dbe28ac 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}) |