diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-01 03:47:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 03:47:57 +0200 |
commit | bab400daafaed898840c979e04717934cb977135 (patch) | |
tree | c0e91c958cca196000744303532687e9a0cfc20f /externals/libusb | |
parent | Merge pull request #6471 from lat9nq/dump-as-mod (diff) | |
parent | cmake: Check dependencies for Linux Qt package (diff) | |
download | yuzu-bab400daafaed898840c979e04717934cb977135.tar yuzu-bab400daafaed898840c979e04717934cb977135.tar.gz yuzu-bab400daafaed898840c979e04717934cb977135.tar.bz2 yuzu-bab400daafaed898840c979e04717934cb977135.tar.lz yuzu-bab400daafaed898840c979e04717934cb977135.tar.xz yuzu-bab400daafaed898840c979e04717934cb977135.tar.zst yuzu-bab400daafaed898840c979e04717934cb977135.zip |
Diffstat (limited to '')
-rw-r--r-- | externals/libusb/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt index 8b9e6433c..151ddc462 100644 --- a/externals/libusb/CMakeLists.txt +++ b/externals/libusb/CMakeLists.txt @@ -5,6 +5,17 @@ if (MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR APPLE) # GNU toolchains for some reason doesn't work with the later half of this CMakeLists after # updating to 1.0.24, so we do it the old-fashioned way for now. + # Require autoconf and libtoolize here, rather than crash during compilation + find_program(AUTOCONF autoconf) + if ("${AUTOCONF}" STREQUAL "AUTOCONF-NOTFOUND") + message(FATAL_ERROR "Required program `autoconf` not found.") + endif() + + find_program(LIBTOOLIZE libtoolize) + if ("${LIBTOOLIZE}" STREQUAL "LIBTOOLIZE-NOTFOUND") + message(FATAL_ERROR "Required program `libtoolize` not found.") + endif() + set(LIBUSB_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libusb") set(LIBUSB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libusb") |