diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-08-01 14:51:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-08-01 14:51:17 (GMT) |
commit | 4cafb72616f9c9adf4f17371ef2e891ed0766b41 (patch) | |
tree | b6ebe3a899ff6e6b87c03294489eca69c5ff347e /Modules/FindQt4.cmake | |
parent | 1973efbab2d101cd588399aa3dc1a7620a7e2f88 (diff) | |
download | CMake-4cafb72616f9c9adf4f17371ef2e891ed0766b41.zip CMake-4cafb72616f9c9adf4f17371ef2e891ed0766b41.tar.gz CMake-4cafb72616f9c9adf4f17371ef2e891ed0766b41.tar.bz2 |
ENH: fix qtmain for release
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 66f7882..3be78b8 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -541,6 +541,11 @@ IF (QT4_QMAKE_FOUND) NO_DEFAULT_PATH) FIND_LIBRARY(QT_QTMAIN_LIBRARY_DEBUG NAMES qtmaind PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH) + IF(QT_QTMAIN_LIBRARY_RELEASE) + SET(QT_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY_RELEASE}) + ELSE(QT_QTMAIN_LIBRARY_RELEASE) + SET(QT_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY_DEBUG}) + ENDIF(QT_QTMAIN_LIBRARY_RELEASE) ENDIF(WIN32) ############################################ |