From 4bdb45a8acfee805c715ca8ccf3cf74aac1a5223 Mon Sep 17 00:00:00 2001 From: fryshorts Date: Sun, 3 May 2015 17:09:29 +0200 Subject: [PATCH] linux-v4l2: Add include directory to cmake Add the include directories found by cmake to the v4l2 plugin. This allows for the plugin to compile when the vl42 headers were found in a directory that is not normally in the search path of the compiler (e.g. /usr/local/include) --- plugins/linux-v4l2/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/linux-v4l2/CMakeLists.txt b/plugins/linux-v4l2/CMakeLists.txt index a466c818c..a310d5def 100644 --- a/plugins/linux-v4l2/CMakeLists.txt +++ b/plugins/linux-v4l2/CMakeLists.txt @@ -24,6 +24,11 @@ else() add_definitions(-DHAVE_UDEV) endif() +include_directories( + SYSTEM "${CMAKE_SOURCE_DIR}/libobs" + ${LIBV4L2_INCLUDE_DIRS} +) + set(linux-v4l2_SOURCES linux-v4l2.c v4l2-input.c