Fix flac detection without pkgconfig file

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/25/head
François Andriot 3 years ago
parent c1348a8ea1
commit bd0309dd00

@ -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