diff options
author | Brad King <brad.king@kitware.com> | 2011-07-26 18:56:30 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-07-26 18:56:30 (GMT) |
commit | 0cfd25681ca0e840f0198ff21f6910efcfe70125 (patch) | |
tree | cd7a915067a455ba013ad83aae685463dc99d306 /Modules | |
parent | 25a35f5686d7a72a4da8508be5d562c6c225664a (diff) | |
parent | 5a2b208617d13808287b3c785183fed9c99576f1 (diff) | |
download | CMake-0cfd25681ca0e840f0198ff21f6910efcfe70125.zip CMake-0cfd25681ca0e840f0198ff21f6910efcfe70125.tar.gz CMake-0cfd25681ca0e840f0198ff21f6910efcfe70125.tar.bz2 |
Merge topic 'qt4-no-build-type'
5a2b208 Add -DQT_NO_DEBUG if no build type is specified so Qt plugins will work.
Diffstat (limited to 'Modules')
-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}) |