mirror of
				https://github.com/coturn/coturn.git
				synced 2025-10-31 06:51:30 +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) | ||||
| endif() | ||||
| 
 | ||||
| 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() | ||||
| 
 | ||||
| find_package(Prometheus) | ||||
| if(Prometheus_FOUND) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user