Changed: Use Threads CMake module and CMAKE_DL_LIBS

--HG--
branch : develop
This commit is contained in:
kervala 2018-08-18 11:13:10 +02:00
parent 6da051e1a8
commit 964e32cd93

View file

@ -947,7 +947,8 @@ MACRO(FIND_QT5)
${CARBON_FRAMEWORK} ${CARBON_FRAMEWORK}
${SECURITY_FRAMEWORK}) ${SECURITY_FRAMEWORK})
ELSEIF(UNIX) ELSEIF(UNIX)
SET(QT_LIBRARIES ${QT_LIBRARIES} ${ZLIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} -ldl -lrt) FIND_PACKAGE(Threads)
LIST(APPEND QT_LIBRARIES ${ZLIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS} -lrt)
ENDIF() ENDIF()
ELSE() ELSE()
SET(QT_LIBRARIES Qt5::Widgets Qt5::Network Qt5::Xml Qt5::Gui Qt5::OpenGL Qt5::Core) SET(QT_LIBRARIES Qt5::Widgets Qt5::Network Qt5::Xml Qt5::Gui Qt5::OpenGL Qt5::Core)