From 44edbe7b48638213e197c7981537d7cc1e8a18a5 Mon Sep 17 00:00:00 2001 From: El Date: Wed, 2 Jul 2025 11:57:16 +0500 Subject: [PATCH] VNC-151 Move FFmpeg pkg-config check to root CMakeLists to fix builds --- CMakeLists.txt | 3 +++ common/rfb/CMakeLists.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d9b504c..9a9764e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,6 +229,9 @@ include_directories(${CMAKE_BINARY_DIR}) include(cmake/StaticBuild.cmake) +find_package(PkgConfig REQUIRED) +pkg_check_modules(FFMPEG REQUIRED libavcodec libavformat libavutil libswscale libva) + add_subdirectory(third_party) add_subdirectory(common) diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt index 380d486..2c29e05 100644 --- a/common/rfb/CMakeLists.txt +++ b/common/rfb/CMakeLists.txt @@ -136,7 +136,6 @@ endif () find_package(PkgConfig REQUIRED) -pkg_check_modules(FFMPEG REQUIRED libavcodec libavformat libavutil libswscale libva) pkg_check_modules(CPUID REQUIRED libcpuid) pkg_check_modules(FMT REQUIRED fmt)