Skip to content

Commit

Permalink
Update FindOpenAL.cmake (emscripten-core#9830)
Browse files Browse the repository at this point in the history
To follow the docs which indicate -lopenal is recommended,
https://emscripten.org/docs/porting/Audio.html
  • Loading branch information
Green-Sky authored and kripken committed Nov 14, 2019
1 parent fbb2897 commit 1b0bd8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -436,3 +436,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Jaikanth J <[email protected]>
* Gernot Lassnig <[email protected]>
* Christian Boos <[email protected]>
* Erik Scholz <[email protected]>
7 changes: 3 additions & 4 deletions cmake/Modules/FindOpenAL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ if (NOT OPENAL_FOUND)
# ... but the stock FindOpenAL.cmake would have returned this.
#SET(OPENAL_INCLUDE_DIR "${EMSCRIPTEN_ROOT_PATH}/system/include/AL")

# No library to link against for OpenAL, this is picked up automatically by library_openal.js,
# but need to report something, or CMake thinks we failed in the search.
SET(OPENAL_LIBRARY "nul")
SET(OPENAL_LIB "")
# Returning "-lopenal" is now considered mandatory
SET(OPENAL_LIBRARY "-lopenal")
SET(OPENAL_LIB "-lopenal")

set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${EMSCRIPTEN_ROOT_PATH}/system/include" "${EMSCRIPTEN_ROOT_PATH}/system/include/AL")

Expand Down

0 comments on commit 1b0bd8b

Please sign in to comment.