diff options
| -rw-r--r-- | CMakeLists.txt | 10 | ||||
| -rw-r--r-- | externals/libusb/CMakeLists.txt | 11 | ||||
| -rw-r--r-- | src/video_core/host_shaders/CMakeLists.txt | 5 |
3 files changed, 24 insertions, 2 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) |
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt index 7180fd42a..9a30b1e2a 100644 --- a/externals/libusb/CMakeLists.txt +++ b/externals/libusb/CMakeLists.txt | |||
| @@ -5,6 +5,17 @@ if (MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")) | |||
| 5 | # GNU toolchains for some reason doesn't work with the later half of this CMakeLists after | 5 | # GNU toolchains for some reason doesn't work with the later half of this CMakeLists after |
| 6 | # updating to 1.0.24, so we do it the old-fashioned way for now. | 6 | # updating to 1.0.24, so we do it the old-fashioned way for now. |
| 7 | 7 | ||
| 8 | # Require autoconf and libtoolize here, rather than crash during compilation | ||
| 9 | find_program(AUTOCONF autoconf) | ||
| 10 | if ("${AUTOCONF}" STREQUAL "AUTOCONF-NOTFOUND") | ||
| 11 | message(FATAL_ERROR "Required program `autoconf` not found.") | ||
| 12 | endif() | ||
| 13 | |||
| 14 | find_program(LIBTOOLIZE libtoolize) | ||
| 15 | if ("${LIBTOOLIZE}" STREQUAL "LIBTOOLIZE-NOTFOUND") | ||
| 16 | message(FATAL_ERROR "Required program `libtoolize` not found.") | ||
| 17 | endif() | ||
| 18 | |||
| 8 | set(LIBUSB_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libusb") | 19 | set(LIBUSB_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libusb") |
| 9 | set(LIBUSB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libusb") | 20 | set(LIBUSB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libusb") |
| 10 | 21 | ||
diff --git a/src/video_core/host_shaders/CMakeLists.txt b/src/video_core/host_shaders/CMakeLists.txt index 2208e1922..c9cff7450 100644 --- a/src/video_core/host_shaders/CMakeLists.txt +++ b/src/video_core/host_shaders/CMakeLists.txt | |||
| @@ -18,7 +18,10 @@ set(SHADER_FILES | |||
| 18 | vulkan_uint8.comp | 18 | vulkan_uint8.comp |
| 19 | ) | 19 | ) |
| 20 | 20 | ||
| 21 | find_program(GLSLANGVALIDATOR "glslangValidator" REQUIRED) | 21 | find_program(GLSLANGVALIDATOR "glslangValidator") |
| 22 | if ("${GLSLANGVALIDATOR}" STREQUAL "GLSLANGVALIDATOR-NOTFOUND") | ||
| 23 | message(FATAL_ERROR "Required program `glslangValidator` not found.") | ||
| 24 | endif() | ||
| 22 | 25 | ||
| 23 | set(GLSL_FLAGS "") | 26 | set(GLSL_FLAGS "") |
| 24 | set(QUIET_FLAG "--quiet") | 27 | set(QUIET_FLAG "--quiet") |