Skip to content

Commit b68aa12

Browse files
authored
Merge pull request opencv#23375 from mshabunin:fix-v4l-verify
cmake: fix V4L config verification conflict with OBSENSOR
2 parents 47bea69 + aef1fc0 commit b68aa12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/videoio/cmake/detect_obsensor.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if(NOT HAVE_OBSENSOR)
1818
endif()
1919
endif()
2020
elseif(UNIX)
21-
check_include_file(linux/videodev2.h HAVE_CAMV4L2)
22-
if(HAVE_CAMV4L2)
21+
check_include_file(linux/videodev2.h HAVE_CAMV4L2_OBSENSOR)
22+
if(HAVE_CAMV4L2_OBSENSOR)
2323
set(HAVE_OBSENSOR TRUE)
2424
set(HAVE_OBSENSOR_V4L2 TRUE)
2525
ocv_add_external_target(obsensor "" "" "HAVE_OBSENSOR;HAVE_OBSENSOR_V4L2")

0 commit comments

Comments
 (0)