1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 06:45:45 +02:00

build: Tweak CMakeLists.txt pkg-config usage for finding avutil.

* CMakeLists.txt: Prepend CMAKE_PREFIX_PATH with the location of
libavutil.pc from daemon's contrib before trying to find libavutil
using pkg-config, and remove it afterwards.  Further, there is no need
to link the application executable against libavutil; the application
only needs its headers (libclient, however, does already link against
libavutil).

Change-Id: Iffa5af43bfd1bb62bc24cc94dce292f87e9ecb2a
This commit is contained in:
Amin Bandali 2022-10-03 14:28:56 -04:00
parent fb94c38540
commit 7fb102ed45

View file

@ -361,7 +361,12 @@ elseif (NOT APPLE)
endif()
pkg_check_modules(XCB xcb)
list(PREPEND CMAKE_PREFIX_PATH
${LIBJAMI_CONTRIB_DIR}/native/ffmpeg/libavutil)
pkg_check_modules(LIBAVUTIL libavutil>=55.75.100)
list(REMOVE_ITEM CMAKE_PREFIX_PATH
${LIBJAMI_CONTRIB_DIR}/native/ffmpeg/libavutil)
include_directories(
${LIBCLIENT_SRC_DIR}
@ -557,8 +562,7 @@ elseif (NOT APPLE)
${LIBGDKPIXBUF_LIBRARIES}
${GLIB_LIBRARIES}
${GIO_LIBRARIES}
${XCB_LIBRARIES}
${LIBAVUTIL_LIBRARIES})
${XCB_LIBRARIES})
# Installation rules
install(