From 38d496b35b733f2f48c565f67f33af128a4fee83 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 21 Sep 2025 04:15:56 +0000 Subject: [PATCH] fix apple clang Signed-off-by: lizzie --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52840b4d7c..fd6e04dc29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -467,15 +467,16 @@ if (YUZU_USE_CPM) # Opus AddJsonPackage(opus) - if (NOT TARGET Opus::opus) - add_library(Opus::opus ALIAS opus) - endif() if (Opus_ADDED) if (MSVC AND CXX_CLANG) target_compile_options(opus PRIVATE -Wno-implicit-function-declaration ) endif() + if (NOT TARGET Opus::opus) + add_library(Opus::opus ALIAS opus) + endif() + endif() # Opus AddJsonPackage(opus)