diff options
author | Slávek Banko <[email protected]> | 2018-06-10 15:17:39 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-06-10 15:17:39 +0200 |
commit | 43a99c946ec2187d0e276615d337ad47276f553a (patch) | |
tree | cd6a1526fde3389bcbc6641d563c88a0bb2aae0e /ConfigureChecks.cmake | |
parent | 7464ab58d08bd3b6dd78d71a0ed46371cf9d1d72 (diff) | |
download | tdemultimedia-43a99c946ec2187d0e276615d337ad47276f553a.tar.gz tdemultimedia-43a99c946ec2187d0e276615d337ad47276f553a.zip |
cmake: Add check of libvorbis version
This is essential for applications that encode to ogg
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index c5b7c0fe..c51954e6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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 ) |