summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-03 10:45:28 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-03 15:50:47 +0200
commit76197aaf8f4308fb488122e17f4413b60b3cae14 (patch)
tree302b411af87a412d1ed63cf24f9680471397e98c
parentdd759e5beabbd8db5412c1010ad9445fece9c2f1 (diff)
downloadtdemultimedia-76197aaf.tar.gz
tdemultimedia-76197aaf.zip
Fix flac detection without pkgconfig file
Signed-off-by: François Andriot <francois.andriot@free.fr> (cherry picked from commit bd0309dd009b87aa89fd0ba1208a3609be0880bb)
-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 )