diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 97afaf1a9..f0e892a97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -473,7 +473,15 @@ if (YUZU_USE_BUNDLED_FFMPEG) | |||
| 473 | 473 | ||
| 474 | # FFmpeg has source that requires one of nasm or yasm to assemble it. | 474 | # FFmpeg has source that requires one of nasm or yasm to assemble it. |
| 475 | # REQUIRED throws an error if not found here during configuration rather than during compilation. | 475 | # REQUIRED throws an error if not found here during configuration rather than during compilation. |
| 476 | find_program(ASSEMBLER NAMES nasm yasm REQUIRED) | 476 | find_program(ASSEMBLER NAMES nasm yasm) |
| 477 | if ("${ASSEMBLER}" STREQUAL "ASSEMBLER-NOTFOUND") | ||
| 478 | message(FATAL_ERROR "One of either `nasm` or `yasm` not found but is required.") | ||
| 479 | endif() | ||
| 480 | |||
| 481 | find_program(AUTOCONF autoconf) | ||
| 482 | if ("${AUTOCONF}" STREQUAL "AUTOCONF-NOTFOUND") | ||
| 483 | message(FATAL_ERROR "Required program `autoconf` not found.") | ||
| 484 | endif() | ||
| 477 | 485 | ||
| 478 | set(FFmpeg_PREFIX ${PROJECT_SOURCE_DIR}/externals/ffmpeg) | 486 | set(FFmpeg_PREFIX ${PROJECT_SOURCE_DIR}/externals/ffmpeg) |
| 479 | set(FFmpeg_BUILD_DIR ${PROJECT_BINARY_DIR}/externals/ffmpeg) | 487 | set(FFmpeg_BUILD_DIR ${PROJECT_BINARY_DIR}/externals/ffmpeg) |