mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix linking with static Qt Embedded builds
Make sure pthreads and dl get linked when building Hyperion using a static Qt Embedded library instead of Qt X11 Former-commit-id: d1e57e9192dfb6c3c42261a9ee57ebdc85bf03cd
This commit is contained in:
parent
3c65b82ac1
commit
905f856543
@ -270,6 +270,16 @@ if(Q_WS_X11)
|
||||
|
||||
endif()
|
||||
|
||||
if(Q_WS_QWS)
|
||||
set(CMAKE_THREAD_PREFER_PTHREADS 1)
|
||||
find_package(Threads)
|
||||
if(CMAKE_USE_PTHREADS_INIT)
|
||||
set(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
||||
set (QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} ${CMAKE_DL_LIBS})
|
||||
|
||||
endif()
|
||||
|
||||
if(Q_WS_WIN)
|
||||
set(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} imm32 winmm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user