Easier MacOS Compilation w/Open AL

Added frameworks CoreAudio and AudioUnit for OpenAL on Mac.

Signed-off-by: CandiceJoy <candice@candicejoy.com>
This commit is contained in:
CandiceJoy 2023-01-29 19:14:11 -06:00 committed by Rachael Alexanderson
parent 1dcdfcc4d3
commit ef0dcc9956

View file

@ -146,6 +146,9 @@ if( NOT NO_OPENAL )
mark_as_advanced(CLEAR OPENAL_LIBRARY)
if( OPENAL_LIBRARY )
set( PROJECT_LIBRARIES ${OPENAL_LIBRARY} ${PROJECT_LIBRARIES} )
if( APPLE )
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "-framework CoreAudio -framework AudioUnit" )
endif()
else()
set( NO_OPENAL ON )
endif()