1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

cmake: fix V4L config verification conflict with OBSENSOR

This commit is contained in:
Maksim Shabunin
2023-03-19 10:58:47 +03:00
parent 752ac19a2f
commit aef1fc087d
+2 -2
View File
@@ -18,8 +18,8 @@ if(NOT HAVE_OBSENSOR)
endif()
endif()
elseif(UNIX)
check_include_file(linux/videodev2.h HAVE_CAMV4L2)
if(HAVE_CAMV4L2)
check_include_file(linux/videodev2.h HAVE_CAMV4L2_OBSENSOR)
if(HAVE_CAMV4L2_OBSENSOR)
set(HAVE_OBSENSOR TRUE)
set(HAVE_OBSENSOR_V4L2 TRUE)
ocv_add_external_target(obsensor "" "" "HAVE_OBSENSOR;HAVE_OBSENSOR_V4L2")