CMake: Directly link to SDL2-static when appropriate
Trying to be lazy and alias SDL2 to SDL2-static causes issues in later versions of CMake. Just use the same condition to tell which one to use.
This commit is contained in:
		
							
								
								
									
										1
									
								
								externals/CMakeLists.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								externals/CMakeLists.txt
									
									
									
									
										vendored
									
									
								
							@@ -69,7 +69,6 @@ if (YUZU_USE_EXTERNAL_SDL2)
 | 
			
		||||
    set(SDL_SHARED OFF)
 | 
			
		||||
 | 
			
		||||
    add_subdirectory(SDL EXCLUDE_FROM_ALL)
 | 
			
		||||
    add_library(SDL2 ALIAS SDL2-static)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
# ENet
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user