- Don't link against sndfile and mpg123 if not compiling with OpenAL support.

This commit is contained in:
Braden Obrzut 2016-01-23 20:09:39 -05:00
parent 88a616da75
commit 20f7f524ca

View file

@ -286,8 +286,10 @@ if( NO_FMOD )
endif( NO_FMOD )
if( NO_OPENAL )
add_definitions( -DNO_OPENAL=1 )
endif( NO_OPENAL )
set(MPG123_FOUND NO)
set(SNDFILE_FOUND NO)
else( NO_OPENAL )
# Search for libSndFile
find_package( SndFile )
@ -295,6 +297,7 @@ find_package( SndFile )
# Search for libmpg123
find_package( MPG123 )
endif( NO_OPENAL )
# Search for FluidSynth