ENH: when linking in QT, we should also link DL, since QT uses them

This commit is contained in:
Andy Cedilnik 2003-07-30 15:38:58 -04:00
parent 9549a5f1dd
commit 7762431bb0

View File

@ -92,6 +92,9 @@ IF(QT_INCLUDE_DIR)
IF (X11_FOUND)
SET (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
ENDIF (X11_FOUND)
IF (CMAKE_DL_LIBS)
SET (QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF (CMAKE_DL_LIBS)
ENDIF(UNIX)
IF(QT_QT_LIBRARY MATCHES "qt-mt")
INCLUDE( ${CMAKE_ROOT}/Modules/FindThreads.cmake )