From: Antonio Ospite Date: Mon, 26 Feb 2018 14:01:40 +0000 (+0100) Subject: examples/CMakeLists.txt: use a relative path for the include file X-Git-Tag: v0.1.7~24 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/8e33a2b69844bc4c48e005ad2902ebf0d1be51f7?hp=-c 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}) --- 8e33a2b69844bc4c48e005ad2902ebf0d1be51f7 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