cmake: Add check of libvorbis version

This is essential for applications that encode to ogg

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 6 years ago
parent 7464ab58d0
commit 43a99c946e

@ -255,7 +255,12 @@ if( WITH_VORBIS )
tde_message_fatal( "Ogg/Vorbis support are requested, but `libvorbisenc` not found" )
endif( )
set( HAVE_VORBIS 1 )
check_library_exists( vorbis vorbis_bitrate_addblock "${VORBIS_LIBRARY_DIRS}" HAVE_VORBIS_2 )
if( HAVE_VORBIS_2 )
set( HAVE_VORBIS 2 )
else( )
set( HAVE_VORBIS 1 )
endif( )
set( OGG_VORBIS 1 )
endif( WITH_VORBIS )

@ -31,7 +31,7 @@
#cmakedefine HAVE_MACHINE_SOUNDCARD_H 1
#cmakedefine HAVE_LIBFLAC 1
#cmakedefine HAVE_VORBIS 1
#cmakedefine HAVE_VORBIS @HAVE_VORBIS@
#cmakedefine OGG_VORBIS 1
/* mpeglib */

Loading…
Cancel
Save