diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 6d04ace1d1..eea70fc27d 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -128,7 +128,7 @@ endif() if (YUZU_USE_BUNDLED_OPUS) add_subdirectory(opus EXCLUDE_FROM_ALL) else() - find_package(opus 1.3 REQUIRED) + find_package(Opus 1.3 REQUIRED) endif() # FFMpeg diff --git a/externals/find-modules/Findopus.cmake b/externals/find-modules/FindOpus.cmake similarity index 80% rename from externals/find-modules/Findopus.cmake rename to externals/find-modules/FindOpus.cmake index 4ebf9ef7be..b68a6046bc 100644 --- a/externals/find-modules/Findopus.cmake +++ b/externals/find-modules/FindOpus.cmake @@ -6,12 +6,12 @@ find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_search_module(opus IMPORTED_TARGET GLOBAL opus) if (opus_FOUND) - add_library(Opus::Opus ALIAS PkgConfig::opus) + add_library(Opus::opus ALIAS PkgConfig::opus) endif() endif() include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(opus +find_package_handle_standard_args(Opus REQUIRED_VARS opus_LINK_LIBRARIES opus_FOUND diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt index a92ffbd693..410ff7c087 100644 --- a/externals/opus/CMakeLists.txt +++ b/externals/opus/CMakeLists.txt @@ -256,4 +256,4 @@ PRIVATE opus/src ) -add_library(Opus::Opus ALIAS opus) +add_library(Opus::opus ALIAS opus) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 40b1ea4a24..0d3286d586 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -787,7 +787,7 @@ endif() create_target_directory_groups(core) target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core) -target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls Opus::Opus) +target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls Opus::opus) if (MINGW) target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY}) endif()