Skip to content

Commit

Permalink
Make OPENAL optional also on non-windows platforms
Browse files Browse the repository at this point in the history
There are some system where OPENAL is not available
  • Loading branch information
th-otto committed Mar 16, 2024
1 parent 83c8956 commit aa2cfb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_feature_info(SDL2 SDL2 "SDL2 video backend")
add_feature_info(OpenAL OPENAL "OpenAL audio backend")
else()
option(OPENAL "Enable OpenAL audio backend." ON)
add_feature_info(SDL1 SDL1 "SDL1 video backend")
add_feature_info(SDL2 SDL2 "SDL2 video backend")
set(OPENAL TRUE)
add_feature_info(OpenAL OPENAL "OpenAL audio backend")
endif()

if(APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down

0 comments on commit aa2cfb5

Please sign in to comment.