mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fixed build with OpenAL on non-Windows systems
We still need to link with OpenAL library on OSes other than Windows
This commit is contained in:
parent
0ab3051f75
commit
46267f52d6
1 changed files with 6 additions and 0 deletions
|
@ -217,8 +217,14 @@ endif()
|
|||
if( NOT NO_OPENAL )
|
||||
find_package( OpenAL )
|
||||
mark_as_advanced(CLEAR OPENAL_INCLUDE_DIR)
|
||||
if( NOT WIN32 )
|
||||
mark_as_advanced(CLEAR OPENAL_LIBRARY)
|
||||
endif()
|
||||
if( OPENAL_FOUND )
|
||||
include_directories( ${OPENAL_INCLUDE_DIR} )
|
||||
if( NOT WIN32 )
|
||||
set( ZDOOM_LIBS ${OPENAL_LIBRARY} ${ZDOOM_LIBS} )
|
||||
endif()
|
||||
else()
|
||||
set( NO_OPENAL ON )
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue