diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-30 17:39:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-30 17:39:08 (GMT) |
commit | 9549a5f1dd5f94b5016653c59e67036147d1a2d5 (patch) | |
tree | ce56ff1939b93feea5679f71a2d8a1799b005ea8 /Modules | |
parent | 2760bf9fa1c925175e2058b9e69980bcf40d5acb (diff) | |
download | CMake-9549a5f1dd5f94b5016653c59e67036147d1a2d5.zip CMake-9549a5f1dd5f94b5016653c59e67036147d1a2d5.tar.gz CMake-9549a5f1dd5f94b5016653c59e67036147d1a2d5.tar.bz2 |
ENH: QT if it is multi threaded should link in threads
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt.cmake | 4 |
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) |