From 76197aaf8f4308fb488122e17f4413b60b3cae14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 3 May 2021 10:45:28 +0200 Subject: Fix flac detection without pkgconfig file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot (cherry picked from commit bd0309dd009b87aa89fd0ba1208a3609be0880bb) --- ConfigureChecks.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) -- cgit v1.2.3