examples/CMakeLists.txt: use a relative path for the include file
authorAntonio Ospite <ao2@ao2.it>
Mon, 26 Feb 2018 14:01:40 +0000 (15:01 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 27 Feb 2018 16:17:42 +0000 (17:17 +0100)
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

index f076b19..16c18f3 100644 (file)
@@ -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