fix apple clang
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
f3287a9f93
commit
46fca6c149
2 changed files with 4 additions and 4 deletions
|
@ -464,15 +464,15 @@ if (YUZU_USE_CPM)
|
||||||
|
|
||||||
# Opus
|
# Opus
|
||||||
AddJsonPackage(opus)
|
AddJsonPackage(opus)
|
||||||
if (NOT TARGET Opus::opus)
|
|
||||||
add_library(Opus::opus ALIAS opus)
|
|
||||||
endif()
|
|
||||||
if (Opus_ADDED)
|
if (Opus_ADDED)
|
||||||
if (MSVC AND CXX_CLANG)
|
if (MSVC AND CXX_CLANG)
|
||||||
target_compile_options(opus PRIVATE
|
target_compile_options(opus PRIVATE
|
||||||
-Wno-implicit-function-declaration
|
-Wno-implicit-function-declaration
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if (NOT TARGET Opus::opus)
|
||||||
|
add_library(Opus::opus ALIAS opus)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT TARGET Opus::opus)
|
if (NOT TARGET Opus::opus)
|
||||||
|
|
|
@ -141,7 +141,7 @@ else()
|
||||||
-Wno-missing-field-initializers
|
-Wno-missing-field-initializers
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CXX_CLANG OR CXX_ICC) # Clang or AppleClang
|
if (CXX_APPLE OR CXX_CLANG OR CXX_ICC) # Clang or AppleClang
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
-Werror=shadow-uncaptured-local
|
-Werror=shadow-uncaptured-local
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue