summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
69259db)
This is the correct way to include a file when calling
check_symbol_exists(), since the include paths are already set with:
set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LIBRARIES ${FFMPEG_LIBRARIES})
set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
check_symbol_exists(avformat_open_input
set(CMAKE_REQUIRED_LIBRARIES ${FFMPEG_LIBRARIES})
set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
check_symbol_exists(avformat_open_input
- "${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat/avformat.h"
+ "libavformat/avformat.h"
HAVE_AVFORMAT_OPEN_INPUT)
if(NOT HAVE_AVFORMAT_OPEN_INPUT)
message(FATAL_ERROR
HAVE_AVFORMAT_OPEN_INPUT)
if(NOT HAVE_AVFORMAT_OPEN_INPUT)
message(FATAL_ERROR