From 9549a5f1dd5f94b5016653c59e67036147d1a2d5 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 30 Jul 2003 13:39:08 -0400 Subject: [PATCH] ENH: QT if it is multi threaded should link in threads --- Modules/FindQt.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake index e23134a610..2bcbc43ea1 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)