diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-12-31 11:05:21 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-12-31 11:05:32 +0100 |
commit | 12e51265e3c10f43ab2c9be9aa08b302202bced1 (patch) | |
tree | fd683c20d68cbd34347accee226fc23eedfa9db7 | |
parent | 1cc441b6bcc01b9722d6862eed75f56610e8c15c (diff) | |
download | tdemultimedia-12e51265e3c10f43ab2c9be9aa08b302202bced1.tar.gz tdemultimedia-12e51265e3c10f43ab2c9be9aa08b302202bced1.zip |
cmake: Fix FLAC detection
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 24d01f69a174aa04e341aa5fc822828aa3f56cc1)
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | config.h.cmake | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index ca404b8f..6eb512e2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -215,10 +215,11 @@ endif( WITH_CDPARANOIA ) # FLAC if( WITH_FLAC ) - pkg_search_module( FLAC vorbis ) + pkg_search_module( FLAC flac ) if( NOT FLAC_FOUND ) tde_message_fatal( "FLAC is requested, but not found on your system" ) endif( ) + set( HAVE_LIBFLAC 1 ) endif( WITH_FLAC ) diff --git a/config.h.cmake b/config.h.cmake index aecf260f..6f46a622 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -24,6 +24,7 @@ #cmakedefine HAVE_SYS_SOUNDCARD_H 1 #cmakedefine HAVE_MACHINE_SOUNDCARD_H 1 +#cmakedefine HAVE_LIBFLAC 1 #cmakedefine HAVE_VORBIS 1 #cmakedefine HAVE_OGG_VORBIS 1 |