avcpp
avcpp copied to clipboard
CMake: INTERFACE_LIBRARY targets may only have whitelisted properties.
When following the build instructions, the following errors appear:
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libavcodec'
-- Found libavcodec, version 58.54.100
-- Checking for module 'libavformat'
-- Found libavformat, version 58.29.100
-- Checking for module 'libavdevice'
-- Found libavdevice, version 58.8.100
-- Checking for module 'libavutil'
-- Found libavutil, version 56.31.100
-- Checking for module 'libavfilter'
-- Found libavfilter, version 7.57.100
-- Checking for module 'libswscale'
-- Found libswscale, version 5.5.100
-- Checking for module 'libpostproc'
-- Found libpostproc, version 55.5.100
-- Checking for module 'libswresample'
-- Found libswresample, version 3.5.100
-- Libs: avcodec | avcodec
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: avformat | avformat
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: avutil | avutil
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: avdevice | avdevice
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: avfilter | avfilter
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: swscale | swscale
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Libs: swresample | swresample
CMake Error at cmake/FindFFmpeg.cmake:166 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_LINK_INTERFACE_MULTIPLICITY" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:31 (find_package)
-- Found FFmpeg: /usr/lib/x86_64-linux-gnu/libavcodec.so;avcodec;/usr/lib/x86_64-linux-gnu/libavformat.so;avformat;/usr/lib/x86_64-linux-gnu/libavutil.so;avutil;/usr/lib/x86_64-linux-gnu/libavdevice.so;avdevice;/usr/lib/x86_64-linux-gnu/libavfilter.so;avfilter;/usr/lib/x86_64-linux-gnu/libswscale.so;swscale;/usr/lib/x86_64-linux-gnu/libswresample.so;swresample
-- LIBS: /
-- /home/teo/tly/avcpp-git/tests/../catch2/contrib
-- Configuring incomplete, errors occurred!
Reverting commit 4629a902 fixes the problem and avcpp compiles successfully. I'm using CMake 3.16.3.