From 4cf31302a1dd887e72481ed4355a9f435d91eb6c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 30 May 2022 10:52:23 +0200 Subject: Fix up ffmpeg header and library handling FFMPEG is needed by the RFB library, so all the details about it should only be applied there and not for other components. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f8cacb9d..e5807def 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,7 +189,7 @@ if(ENABLE_H264) find_library(AVUTIL_LIBRARY avutil) find_path(SWSCALE_INCLUDE_DIR libswscale/swscale.h) find_library(SWSCALE_LIBRARY swscale) - include_directories(${AVCODEC_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR}) + set(H264_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIRS} ${AVUTIL_INCLUDE_DIRS} ${SWSCALE_INCLUDE_DIRS}) set(H264_LIBRARIES ${AVCODEC_LIBRARY} ${AVUTIL_LIBRARY} ${SWSCALE_LIBRARY}) add_definitions("-D__STDC_CONSTANT_MACROS") add_definitions("-DHAVE_H264") -- cgit v1.2.3