mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Enable threading libraries inside the CMake Use file
This commit is contained in:
parent
7e7fa0d7d4
commit
c8042df583
2 changed files with 4 additions and 3 deletions
|
|
@ -5,9 +5,6 @@ find_package(Git REQUIRED)
|
|||
find_package(DepotTools REQUIRED)
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
list(APPEND LIBWEBRTC_LIBRARIES webrtc Threads::Threads)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ if (LIBWEBRTC_USE_FILE_INCLUDED)
|
|||
endif ()
|
||||
set(LIBWEBRTC_USE_FILE_INCLUDED 1)
|
||||
|
||||
# Enable threading
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Update CMAKE_MODULE_PATH so includes work.
|
||||
list(APPEND CMAKE_MODULE_PATH ${LIBWEBRTC_CMAKE_DIR})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue