cmake: opus is now optional + libsndfile only when using openal

This commit is contained in:
Anonymous Maarten
2021-01-11 01:29:43 +01:00
committed by shfil
parent d9f6a05b7e
commit b375e20c75
3 changed files with 32 additions and 22 deletions

View File

@ -12,6 +12,7 @@ endif()
set(RE3_AUDIO "OAL" CACHE STRING "Audio")
option(RE3_WITH_OPUS "Build re3 with opus support" ON)
option(RE3_WITH_LIBSNDFILE "Build re3 with libsndfile (instead of internal decoder)" OFF)
set_property(CACHE RE3_AUDIO PROPERTY STRINGS ${RE3_AUDIOS})
message(STATUS "RE3_AUDIO = ${RE3_AUDIO} (choices=${RE3_AUDIOS})")