From 8e33a2b69844bc4c48e005ad2902ebf0d1be51f7 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 26 Feb 2018 15:01:40 +0100 Subject: [PATCH 1/1] examples/CMakeLists.txt: use a relative path for the include file 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}) --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index f076b19..16c18f3 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -19,7 +19,7 @@ if(BUILD_AM7XXX-PLAY) 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 -- 2.1.4