mirror of
				https://github.com/encounter/SDL.git
				synced 2025-10-25 19:20:25 +00:00 
			
		
		
		
	cmake: don't fail if Wayland is enabled but libdecor isn't found.
Instead, just disable libdecor support. This matches what the configure script does.
This commit is contained in:
		
							parent
							
								
									c308453952
								
							
						
					
					
						commit
						74aa4b635c
					
				| @ -698,12 +698,13 @@ macro(CheckWayland) | |||||||
|       endif() |       endif() | ||||||
| 
 | 
 | ||||||
|       if(WAYLAND_LIBDECOR) |       if(WAYLAND_LIBDECOR) | ||||||
|         pkg_check_modules(libdecor REQUIRED libdecor-0) |         pkg_check_modules(PKG_LIBDECOR libdecor-0) | ||||||
| 
 |         if(PKG_LIBDECOR_FOUND) | ||||||
|         FindLibraryAndSONAME(decor-0) |             set(HAVE_WAYLAND_LIBDECOR TRUE) | ||||||
|         set(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "\"${DECOR_0_LIB_SONAME}\"") |             FindLibraryAndSONAME(decor-0) | ||||||
| 
 |             set(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "\"${DECOR_0_LIB_SONAME}\"") | ||||||
|         add_definitions(-DHAVE_LIBDECOR_H) |             add_definitions(-DHAVE_LIBDECOR_H) | ||||||
|  |         endif() | ||||||
|       endif() |       endif() | ||||||
| 
 | 
 | ||||||
|       set(SDL_VIDEO_DRIVER_WAYLAND 1) |       set(SDL_VIDEO_DRIVER_WAYLAND 1) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user