Work around MinGW's weird OpenAL config

This commit is contained in:
David Hrdlička
2022-02-07 22:48:07 +01:00
parent d76394a72f
commit bf3bdb7367

View File

@@ -88,7 +88,14 @@ if(APPLE)
endif()
if(OPENAL)
find_package(OpenAL REQUIRED)
if(VCPKG_TOOLCHAIN)
find_package(OpenAL CONFIG REQUIRED)
elseif(MINGW)
find_package(OpenAL MODULE REQUIRED)
else()
find_package(OpenAL REQUIRED)
endif()
if(TARGET OpenAL::OpenAL)
target_link_libraries(86Box OpenAL::OpenAL)
else()