mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-14 04:24:31 +00:00
8648c27cbb
Since 3.25 introduced `LINUX` and `BSD`, use them, and standardize other platforms to that style Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4183 Reviewed-by: Samuel <lizzie@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
23 lines
589 B
CMake
23 lines
589 B
CMake
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_search_module(OPUS QUIET IMPORTED_TARGET opus)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Opus
|
|
REQUIRED_VARS OPUS_LINK_LIBRARIES
|
|
VERSION_VAR OPUS_VERSION
|
|
)
|
|
|
|
if (MSYS2)
|
|
FixMsysPath(PkgConfig::OPUS)
|
|
endif()
|
|
|
|
if (Opus_FOUND AND NOT TARGET Opus::opus)
|
|
add_library(Opus::opus ALIAS PkgConfig::OPUS)
|
|
endif()
|