mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Work around MinGW's weird OpenAL config
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user