summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index e23134a..2bcbc43 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -93,6 +93,10 @@ IF(QT_INCLUDE_DIR)
SET (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
ENDIF (X11_FOUND)
ENDIF(UNIX)
+ IF(QT_QT_LIBRARY MATCHES "qt-mt")
+ INCLUDE( ${CMAKE_ROOT}/Modules/FindThreads.cmake )
+ SET(QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+ ENDIF(QT_QT_LIBRARY MATCHES "qt-mt")
ENDIF(QT_QT_LIBRARY)
ENDIF(QT_INCLUDE_DIR)