Commit 10d64b90 authored by Ghislain MARY's avatar Ghislain MARY

Fix errors in CMake script to search for V4L.

parent 2cff42a6
......@@ -64,7 +64,7 @@ find_library(V4LCONVERT_LIBRARIES
)
set(V4L_INCLUDE_DIRS )
if(V4L1_INCLUDE_DIRS})
if(V4L1_INCLUDE_DIRS)
list(APPEND V4L_INCLUDE_DIRS ${V4L1_INCLUDE_DIRS})
endif()
if(V4L2_INCLUDE_DIRS)
......@@ -80,8 +80,12 @@ endif()
if(V4LCONVERT_LIBRARIES)
list(APPEND V4L_LIBRARIES ${V4LCONVERT_LIBRARIES})
endif()
list(REMOVE_DUPLICATES V4L_INCLUDE_DIRS)
list(REMOVE_DUPLICATES V4L_LIBRARIES)
if(V4L_INCLUDE_DIRS)
list(REMOVE_DUPLICATES V4L_INCLUDE_DIRS)
endif()
if(V4L_LIBRARIES)
list(REMOVE_DUPLICATES V4L_LIBRARIES)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(V4L
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment