Skip to content

Commit

Permalink
FFMPEG_INCLUDE_DIRS must be a list not a string.
Browse files Browse the repository at this point in the history
Changes CXX_INCLUDES:
- ... -I"/usr/include/ffmpeg /usr/include/ffmpeg" ...
+ ... -I/usr/include/ffmpeg ...

Fixes:
src/backends/decoder.h:29:32: fatal error: libavcodec/avcodec.h: No such file or directory
  • Loading branch information
jobermayr committed Oct 20, 2016
1 parent 9773ded commit a62159e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -296,7 +296,7 @@ IF(ENABLE_LIBAVCODEC)
INCLUDE(CheckFunctionExists REQUIRED)
INCLUDE(CheckCSourceCompiles)
SET(FFMPEG_FLAGS "${LIBAVCODEC_CFLAGS} ${LIBAVRESAMPLE_FLAGS}")
SET(FFMPEG_INCLUDE_DIRS "${FFMPEG_INCLUDE_DIRS} ${LIBAVRESAMPLE_INCLUDE_DIRS}")
SET(FFMPEG_INCLUDE_DIRS "${FFMPEG_INCLUDE_DIRS};${LIBAVRESAMPLE_INCLUDE_DIRS}")
SET(FFMPEG_LIBRARIES "${FFMPEG_LIBRARIES};${LIBAVRESAMPLE_LIBRARIES}")
SET(CMAKE_REQUIRED_FLAGS ${FFMPEG_FLAGS})
SET(CMAKE_REQUIRED_INCLUDES ${FFMPEG_INCLUDE_DIRS})
Expand Down

0 comments on commit a62159e

Please sign in to comment.