mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 13:20:03 +00:00 
			
		
		
		
	Merge pull request #4960 from zhaowenlan1779/ffmpeg-cmake-fix
CMakeLists: Fix `find_package` call
This commit is contained in:
		
						commit
						a757e9dc47
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -209,7 +209,11 @@ if (ENABLE_FFMPEG) | |||
|         endif() | ||||
|     endif() | ||||
| 
 | ||||
|     find_package(FFmpeg REQUIRED COMPONENTS avcodec avformat avutil swscale swresample) | ||||
|     if (ENABLE_FFMPEG_VIDEO_DUMPER) | ||||
|         find_package(FFmpeg REQUIRED COMPONENTS avcodec avformat avutil swscale swresample) | ||||
|     else() | ||||
|         find_package(FFmpeg REQUIRED COMPONENTS avcodec) | ||||
|     endif() | ||||
|     if ("${FFmpeg_avcodec_VERSION}" VERSION_LESS "57.48.101") | ||||
|         message(FATAL_ERROR "Found version for libavcodec is too low. The required version is at least 57.48.101 (included in FFmpeg 3.1 and later).") | ||||
|     endif() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue