From adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6 Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda Date: Mon, 1 Aug 2022 12:31:31 +0200 Subject: build(externals): rename Findopus to FindOpus This better matches upstream's FindOpus.cmake file, and it will make using upstream's FindOpus.cmake file easier. --- externals/find-modules/FindOpus.cmake | 19 +++++++++++++++++++ externals/find-modules/Findopus.cmake | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 externals/find-modules/FindOpus.cmake delete mode 100644 externals/find-modules/Findopus.cmake (limited to 'externals/find-modules') diff --git a/externals/find-modules/FindOpus.cmake b/externals/find-modules/FindOpus.cmake new file mode 100644 index 000000000..b68a6046b --- /dev/null +++ b/externals/find-modules/FindOpus.cmake @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2022 yuzu Emulator Project +# SPDX-License-Identifier: GPL-2.0-or-later + +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) + endif() +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Opus + REQUIRED_VARS + opus_LINK_LIBRARIES + opus_FOUND + VERSION_VAR opus_VERSION +) diff --git a/externals/find-modules/Findopus.cmake b/externals/find-modules/Findopus.cmake deleted file mode 100644 index 4ebf9ef7b..000000000 --- a/externals/find-modules/Findopus.cmake +++ /dev/null @@ -1,19 +0,0 @@ -# SPDX-FileCopyrightText: 2022 yuzu Emulator Project -# SPDX-License-Identifier: GPL-2.0-or-later - -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) - endif() -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(opus - REQUIRED_VARS - opus_LINK_LIBRARIES - opus_FOUND - VERSION_VAR opus_VERSION -) -- cgit v1.2.3