mirror of
				https://github.com/coturn/coturn.git
				synced 2025-10-30 22:40:59 +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,11 +75,15 @@ else() | |||||||
|     list(APPEND turnserver_DEFINED TURN_NO_HIREDIS) |     list(APPEND turnserver_DEFINED TURN_NO_HIREDIS) | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
|  | if(NOT APPLE) | ||||||
|     find_package(libsystemd) |     find_package(libsystemd) | ||||||
|     if(libsystemd_FOUND) |     if(libsystemd_FOUND) | ||||||
|     else() |     else() | ||||||
|         list(APPEND turnserver_DEFINED TURN_NO_SYSTEMD) |         list(APPEND turnserver_DEFINED TURN_NO_SYSTEMD) | ||||||
|     endif() |     endif() | ||||||
|  | else() | ||||||
|  |     list(APPEND turnserver_DEFINED TURN_NO_SYSTEMD) | ||||||
|  | endif() | ||||||
| 
 | 
 | ||||||
| find_package(Prometheus) | find_package(Prometheus) | ||||||
| if(Prometheus_FOUND) | if(Prometheus_FOUND) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user