aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-05-30 10:52:23 +0200
committerPierre Ossman <ossman@cendio.se>2022-06-07 10:06:32 +0200
commit4cf31302a1dd887e72481ed4355a9f435d91eb6c (patch)
tree144f9f39a659d341bcae0e96fe696fd4b85f1c52 /CMakeLists.txt
parent1527f0b6dbfa8695ca3d17ca51f711add12c6664 (diff)
downloadtigervnc-4cf31302a1dd887e72481ed4355a9f435d91eb6c.tar.gz
tigervnc-4cf31302a1dd887e72481ed4355a9f435d91eb6c.zip
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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")