Fix flac detection without pkgconfig file

Signed-off-by: François Andriot <francois.andriot@free.fr>
(cherry picked from commit bd0309dd00)
r14.0.x
François Andriot 4 years ago committed by Slávek Banko
parent dd759e5bea
commit 76197aaf8f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -228,7 +228,10 @@ endif( WITH_CDPARANOIA )
if( WITH_FLAC )
pkg_search_module( FLAC flac )
if( NOT FLAC_FOUND )
tde_message_fatal( "FLAC is requested, but not found on your system" )
find_library( FLAC_LIBRARIES NAMES FLAC FLAC++ OggFLAC OggFLAC++)
if( NOT FLAC_LIBRARIES )
tde_message_fatal( "FLAC is requested, but not found on your system" )
endif( )
endif( )
set( HAVE_LIBFLAC 1 )
endif( WITH_FLAC )

Loading…
Cancel
Save