mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Link with rt and pthread library
This commit is contained in:
parent
ad6d1a565a
commit
ee7fb4f42d
1 changed files with 7 additions and 1 deletions
|
|
@ -4,7 +4,13 @@ list(APPEND LIBWEBRTC_LIBRARIES webrtc)
|
|||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(X11 REQUIRED)
|
||||
list(APPEND LIBWEBRTC_LIBRARIES ${X11_LIBRARIES} ${CMAKE_DL_LIBS})
|
||||
list(APPEND LIBWEBRTC_LIBRARIES ${X11_LIBRARIES} ${CMAKE_DL_LIBS} rt)
|
||||
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
if (CMAKE_HAVE_THREADS_LIBRARY)
|
||||
list(APPEND LIBWEBRTC_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif (CMAKE_HAVE_THREADS_LIBRARY)
|
||||
endif (UNIX AND NOT APPLE)
|
||||
|
||||
if (APPLE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue