diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a6536fd4..cdf63a030 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-FileCopyrightText: 2018 yuzu Emulator Project | 1 | # SPDX-FileCopyrightText: 2018 yuzu Emulator Project |
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | 2 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | cmake_minimum_required(VERSION 3.15) | 4 | cmake_minimum_required(VERSION 3.22) |
| 5 | 5 | ||
| 6 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | 6 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") |
| 7 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") | 7 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") |
| @@ -474,22 +474,7 @@ if (UNIX AND NOT APPLE) | |||
| 474 | endif() | 474 | endif() |
| 475 | if (NOT YUZU_USE_BUNDLED_FFMPEG) | 475 | if (NOT YUZU_USE_BUNDLED_FFMPEG) |
| 476 | # Use system installed FFmpeg | 476 | # Use system installed FFmpeg |
| 477 | find_package(FFmpeg 4.3 QUIET COMPONENTS ${FFmpeg_COMPONENTS}) | 477 | find_package(FFmpeg 4.3 REQUIRED QUIET COMPONENTS ${FFmpeg_COMPONENTS}) |
| 478 | |||
| 479 | if (FFmpeg_FOUND) | ||
| 480 | # Overwrite aggregate defines from FFmpeg module to avoid over-linking libraries. | ||
| 481 | # Prevents shipping too many libraries with the AppImage. | ||
| 482 | set(FFmpeg_LIBRARIES "") | ||
| 483 | set(FFmpeg_INCLUDE_DIR "") | ||
| 484 | |||
| 485 | foreach(COMPONENT ${FFmpeg_COMPONENTS}) | ||
| 486 | set(FFmpeg_LIBRARIES ${FFmpeg_LIBRARIES} ${FFmpeg_LIBRARY_${COMPONENT}} CACHE PATH "Paths to FFmpeg libraries" FORCE) | ||
| 487 | set(FFmpeg_INCLUDE_DIR ${FFmpeg_INCLUDE_DIR} ${FFmpeg_INCLUDE_${COMPONENT}} CACHE PATH "Path to FFmpeg headers" FORCE) | ||
| 488 | endforeach() | ||
| 489 | else() | ||
| 490 | message(WARNING "FFmpeg not found or too old, falling back to externals") | ||
| 491 | set(YUZU_USE_BUNDLED_FFMPEG ON) | ||
| 492 | endif() | ||
| 493 | endif() | 478 | endif() |
| 494 | 479 | ||
| 495 | # Prefer the -pthread flag on Linux. | 480 | # Prefer the -pthread flag on Linux. |