Merge pull request #23375 from mshabunin:fix-v4l-verify

cmake: fix V4L config verification conflict with OBSENSOR
This commit is contained in:
Alexander Smorkalov 2023-04-18 13:05:04 +03:00 committed by GitHub
commit b68aa12572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")