build: cmake tweak for ffmpeg

This commit is contained in:
bnnm 2021-09-12 20:08:38 +02:00
parent 518cf8f8b1
commit e1c9da8bea

View File

@ -103,10 +103,11 @@ endif()
if(BUILD_STATIC)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_OPUS REQUIRED opus>=1.1)
# it is already kind of obvious when you do not have it, and just prevents you from building without ffmpeg
#find_package(PkgConfig REQUIRED)
#pkg_check_modules(PC_OPUS REQUIRED opus>=1.1)
# Incompatible with static builds
set(BUILD_AUDACIOUS OFF)
endif()