mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
Merge pull request #6419 from Ebola16/Fix_OpenAL
Change FATAL_ERROR to STATUS message for OpenAL not found in externals
This commit is contained in:
commit
63d5e57337
@ -59,13 +59,14 @@ if(WIN32)
|
|||||||
target_link_libraries(audiocommon PRIVATE audiocommon_xaudio27)
|
target_link_libraries(audiocommon PRIVATE audiocommon_xaudio27)
|
||||||
|
|
||||||
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/Externals/OpenAL)
|
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/Externals/OpenAL)
|
||||||
|
# Dolphin loads openal32.dll at runtime
|
||||||
find_package(OpenAL)
|
find_package(OpenAL)
|
||||||
if(OPENAL_FOUND)
|
if(OPENAL_FOUND)
|
||||||
message(STATUS "OpenAL found, enabling OpenAL sound backend")
|
message(STATUS "OpenAL found, enabling OpenAL sound backend")
|
||||||
target_sources(audiocommon PRIVATE OpenALStream.cpp)
|
target_sources(audiocommon PRIVATE OpenALStream.cpp)
|
||||||
target_link_libraries(audiocommon PRIVATE OpenAL::OpenAL)
|
target_link_libraries(audiocommon PRIVATE OpenAL::OpenAL)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "OpenAL NOT found in Externals")
|
message(STATUS "OpenAL NOT found in Externals")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user