- 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,16 +286,19 @@ if( NO_FMOD )
endif( NO_FMOD ) endif( NO_FMOD )
if( NO_OPENAL ) if( NO_OPENAL )
add_definitions( -DNO_OPENAL=1 ) add_definitions( -DNO_OPENAL=1 )
set(MPG123_FOUND NO)
set(SNDFILE_FOUND NO)
else( NO_OPENAL )
# Search for libSndFile
find_package( SndFile )
# Search for libmpg123
find_package( MPG123 )
endif( NO_OPENAL ) endif( NO_OPENAL )
# Search for libSndFile
find_package( SndFile )
# Search for libmpg123
find_package( MPG123 )
# Search for FluidSynth # Search for FluidSynth
find_package( FluidSynth ) find_package( FluidSynth )