Skip to content
Permalink
Browse files
Merge pull request #6419 from Ebola16/Fix_OpenAL
Change FATAL_ERROR to STATUS message for OpenAL not found in externals
  • Loading branch information
leoetlino committed Mar 10, 2018
2 parents d72947d + b727648 commit 63d5e57
Showing 1 changed file with 2 additions and 1 deletion.
@@ -59,13 +59,14 @@ if(WIN32)
target_link_libraries(audiocommon PRIVATE audiocommon_xaudio27)

set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/Externals/OpenAL)
# Dolphin loads openal32.dll at runtime
find_package(OpenAL)
if(OPENAL_FOUND)
message(STATUS "OpenAL found, enabling OpenAL sound backend")
target_sources(audiocommon PRIVATE OpenALStream.cpp)
target_link_libraries(audiocommon PRIVATE OpenAL::OpenAL)
else()
message(FATAL_ERROR "OpenAL NOT found in Externals")
message(STATUS "OpenAL NOT found in Externals")
endif()
endif()

0 comments on commit 63d5e57

Please sign in to comment.