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:
commit
c964054811
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user