1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,6 +144,7 @@
include(CheckLibraryExists)
include(CMakePushCheckState)
include(GNUInstallDirs)
+include(FindPkgConfig)
if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
@@ -367,6 +368,9 @@
if(ENABLE_G729 OR ENABLE_G729B_CNG)
find_package(Bcg729 CONFIG)
if(NOT BCG729_FOUND)
+ pkg_search_module(BCG729 REQUIRED libbcg729)
+ endif()
+ if(NOT BCG729_FOUND)
message(WARNING "Could not find bcg729, mediastreamer2 will be compiled without G729 codec and G729 AnnexB in RFC3389.")
set(ENABLE_G729 OFF CACHE BOOL "Build mediastreamer2 with the G729 codec." FORCE)
set(ENABLE_G729B_CNG OFF CACHE BOOL "Build mediastreamer2 with G729 Annex B cng." FORCE)
|