1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-29 14:01:01 +01:00

Disable systemd when building on macOS using CMake (#953)

systemd is not available on macOS - should be disabled in CMake 

Test plan:
- Run cmake in a clean folder
- Run make
- Observe that compilation error about missing include `<systemd/sd-daemon.h>` is gone
This commit is contained in:
Gustavo Garcia 2022-08-23 09:00:07 +02:00 committed by GitHub
commit c964054811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,12 @@ else()
list(APPEND turnserver_DEFINED TURN_NO_HIREDIS)
endif()
find_package(libsystemd)
if(libsystemd_FOUND)
if(NOT APPLE)
find_package(libsystemd)
if(libsystemd_FOUND)
else()
list(APPEND turnserver_DEFINED TURN_NO_SYSTEMD)
endif()
else()
list(APPEND turnserver_DEFINED TURN_NO_SYSTEMD)
endif()