diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-06-18 08:12:00 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-17 17:12:00 -0700 |
| commit | 0b24f31aadfff8e0b43903dc7632640d32d6a343 (patch) | |
| tree | e4437d08ca52f96fff070c4380da1bdc3cecb842 | |
| parent | f10cfbe064e1c79340e2366361f5de2b3997ad41 (diff) | |
| download | vcpkg-0b24f31aadfff8e0b43903dc7632640d32d6a343.tar.gz vcpkg-0b24f31aadfff8e0b43903dc7632640d32d6a343.zip | |
[sdl2-mixer]Fix build error with feature opusfile. (#6929)
| -rw-r--r-- | ports/sdl2-mixer/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ports/sdl2-mixer/CONTROL | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ports/sdl2-mixer/CMakeLists.txt b/ports/sdl2-mixer/CMakeLists.txt index f9912346c..1265145fa 100644 --- a/ports/sdl2-mixer/CMakeLists.txt +++ b/ports/sdl2-mixer/CMakeLists.txt @@ -49,9 +49,11 @@ endif() # Opus support if(SDL_MIXER_ENABLE_OPUS) find_path(OPUS_INCLUDE_DIR opus/opusfile.h) + find_package(ogg CONFIG REQUIRED) + find_package(Opus CONFIG REQUIRED) find_library(OPUSFILE_LIBRARY opusfile) list(APPEND SDL_MIXER_INCLUDES ${OPUS_INCLUDE_DIR}) - list(APPEND SDL_MIXER_LIBRARIES ${OPUSFILE_LIBRARY}) + list(APPEND SDL_MIXER_LIBRARIES ${OPUSFILE_LIBRARY} Ogg::ogg Opus::opus) list(APPEND SDL_MIXER_DEFINES MUSIC_OPUS) endif() diff --git a/ports/sdl2-mixer/CONTROL b/ports/sdl2-mixer/CONTROL index 57827c0e6..2c76639dc 100644 --- a/ports/sdl2-mixer/CONTROL +++ b/ports/sdl2-mixer/CONTROL @@ -1,5 +1,5 @@ Source: sdl2-mixer -Version: 2.0.4-2 +Version: 2.0.4-3 Homepage: https://www.libsdl.org/projects/SDL_mixer Description: Multi-channel audio mixer library for SDL. Build-Depends: sdl2 |
