From c2ba21674aa62757187431c6a7b1df6486ba86a0 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 411dcd662a..3eca185f49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -442,15 +442,15 @@ 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() if (NOT TARGET Opus::opus)