Skip to content

Commit

Permalink
Easier MacOS Compilation w/Open AL
Browse files Browse the repository at this point in the history
Added frameworks CoreAudio and AudioUnit for OpenAL on Mac.

Signed-off-by: CandiceJoy <candice@candicejoy.com>
  • Loading branch information
CandiceJoy authored and madame-rachelle committed Feb 9, 2023
1 parent 1dcdfcc commit ef0dcc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit ef0dcc9

Please sign in to comment.