diff options
author | Mai <mathew1800@gmail.com> | 2022-06-14 08:34:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 08:34:16 -0400 |
commit | a3b12e3809e388e9c9b0608b14d85c0985e412c3 (patch) | |
tree | 135226fe24596286c54bf9c5c4a12868c3c55e90 /externals | |
parent | dc47d0f624afe76623158a60623d2b6866b36678 (diff) | |
parent | bd38aefc573e5e554386217546bd3a0dd78cc449 (diff) |
Merge pull request #8439 from liamwhite/monkey-compiler
general: fix compilation on GCC 12
Diffstat (limited to 'externals')
-rw-r--r-- | externals/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 64361de5f..bd01f4c4d 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -40,6 +40,11 @@ target_include_directories(mbedtls PUBLIC ./mbedtls/include) add_library(microprofile INTERFACE) target_include_directories(microprofile INTERFACE ./microprofile) +# GCC bugs +if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND MINGW) + target_compile_options(microprofile INTERFACE "-Wno-array-bounds") +endif() + # libusb if (NOT LIBUSB_FOUND OR YUZU_USE_BUNDLED_LIBUSB) add_subdirectory(libusb) |