1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-23 12:00:59 +02:00

Fix cmake build on macOS (#949)

macOS does not have `pthread_barrier_*` so need to define `TURN_NO_THREAD_BARRIERS` as a workaround

Fixes #946 

Tests plan: 
- run cmake to generate make files
- run make to build turnserver
- run `examples/run_tests.sh` and pass successfully
This commit is contained in:
Pavel Punsky 2022-08-22 16:27:21 -07:00 committed by GitHub
parent 4546b85cd4
commit 7a38f02699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,10 @@ IF(MSVC)
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
ENDIF(MSVC)
IF(APPLE)
add_compile_definitions("TURN_NO_THREAD_BARRIERS=1")
ENDIF()
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
include(GenerateExportHeader)