summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-03 10:45:28 +0200
committerFrançois Andriot <francois.andriot@free.fr>2021-05-03 11:19:19 +0200
commitbd0309dd009b87aa89fd0ba1208a3609be0880bb (patch)
treefa3699506b989b76a296f5c1446c71a97742c8f8
parentc1348a8ea1578bcd7a129aa920e82d3901c11ff5 (diff)
downloadtdemultimedia-bd0309dd009b87aa89fd0ba1208a3609be0880bb.tar.gz
tdemultimedia-bd0309dd009b87aa89fd0ba1208a3609be0880bb.zip
Fix flac detection without pkgconfig file
Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--ConfigureChecks.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index eb8a0de2..16381307 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -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 )