diff --git a/modules/videoio/cmake/detect_obsensor.cmake b/modules/videoio/cmake/detect_obsensor.cmake index 140e9a2e50..fe3f893b48 100644 --- a/modules/videoio/cmake/detect_obsensor.cmake +++ b/modules/videoio/cmake/detect_obsensor.cmake @@ -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")