ENH: Use FIND_PACKAGE instead of INCLUDE(Find...

This commit is contained in:
Andy Cedilnik 2004-09-10 11:15:07 -04:00
parent 685a8ed86f
commit 0e67feb17a
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ IF(QT_FOUND)
SET (QT_UIC_EXE ${QT_UIC_EXECUTABLE} )
# for unix add X11 stuff
IF(UNIX)
INCLUDE(FindX11)
FIND_PACKAGE(X11)
IF (X11_FOUND)
SET (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
ENDIF (X11_FOUND)
@ -214,7 +214,7 @@ IF(QT_FOUND)
ENDIF (CMAKE_DL_LIBS)
ENDIF(UNIX)
IF(QT_QT_LIBRARY MATCHES "qt-mt")
INCLUDE(FindThreads)
FIND_PACKAGE(Threads)
SET(QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
ENDIF(QT_QT_LIBRARY MATCHES "qt-mt")
ENDIF(QT_FOUND)