diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c466e8120..d1c15b2e0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -455,15 +455,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)