Skip to content

Commit

Permalink
Disable SndIO by default on non-BSD systems
Browse files Browse the repository at this point in the history
It can still be enabled by setting ALSOFT_BACKEND_SNDIO=TRUE with cmake, but
since it isn't loaded dynamically, don't create a requirement on libsndio when
it's not needed or wanted.
  • Loading branch information
kcat committed Apr 15, 2024
1 parent 83719b6 commit 7dcfe0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,12 @@ if(NOT WIN32)
endif()
endif()

# Check SndIO backend
option(ALSOFT_BACKEND_SNDIO "Enable SndIO backend" ON)
# Check SndIO backend (disabled by default on non-BSDs)
if(BSD)
option(ALSOFT_BACKEND_SNDIO "Enable SndIO backend" ON)
else()
option(ALSOFT_BACKEND_SNDIO "Enable SndIO backend" OFF)
endif()
option(ALSOFT_REQUIRE_SNDIO "Require SndIO backend" OFF)
if(ALSOFT_BACKEND_SNDIO)
find_package(SoundIO)
Expand Down

0 comments on commit 7dcfe0f

Please sign in to comment.