Disable systemd when building on macOS using CMake

This commit is contained in:
Pavel Punsky 2022-08-22 18:53:43 -07:00
parent 7a38f02699
commit ed29e986c1

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()