vcpkg/ports/magnum/004-fix-FindOpenAL.patch
jim wang 9055f88ba5
[magnum] Fix compile feature-wavaudioimporter error (#32256)
* Fix compile wavaudioimporter error

* update version

* Fix compile feature-wavaudioimporter error

* update version
2023-06-29 14:44:18 -07:00

26 lines
902 B
Diff

diff --git a/src/MagnumPlugins/AnyAudioImporter/CMakeLists.txt b/src/MagnumPlugins/AnyAudioImporter/CMakeLists.txt
index 64371a4..375ca58 100644
--- a/src/MagnumPlugins/AnyAudioImporter/CMakeLists.txt
+++ b/src/MagnumPlugins/AnyAudioImporter/CMakeLists.txt
@@ -24,6 +24,7 @@
#
find_package(Corrade REQUIRED PluginManager)
+find_package(OpenAL CONFIG REQUIRED)
if(BUILD_PLUGINS_STATIC)
set(MAGNUM_ANYAUDIOIMPORTER_BUILD_STATIC 1)
diff --git a/src/MagnumPlugins/WavAudioImporter/CMakeLists.txt b/src/MagnumPlugins/WavAudioImporter/CMakeLists.txt
index f4172d4..bdfd9da 100644
--- a/src/MagnumPlugins/WavAudioImporter/CMakeLists.txt
+++ b/src/MagnumPlugins/WavAudioImporter/CMakeLists.txt
@@ -24,6 +24,8 @@
#
find_package(Corrade REQUIRED PluginManager)
+include(CMakeFindDependencyMacro)
+find_dependency(OpenAL)
if(BUILD_PLUGINS_STATIC)
set(MAGNUM_WAVAUDIOIMPORTER_BUILD_STATIC 1)