From de786a075b31b4988341a625ef85c081530e2a7d Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 27 Jun 2021 15:38:58 +0300 Subject: Fixes for Kopete videodevice support Signed-off-by: Mavridis Philippe --- kopete/ConfigureChecks.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kopete/ConfigureChecks.cmake') diff --git a/kopete/ConfigureChecks.cmake b/kopete/ConfigureChecks.cmake index 445c76f9..c8e03e06 100644 --- a/kopete/ConfigureChecks.cmake +++ b/kopete/ConfigureChecks.cmake @@ -46,13 +46,13 @@ endif( ) ### Check for videodev header -check_include_file( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H ) -if( HAVE_LIBV4L1_VIDEODEV_H ) - set( VIDEODEV_HEADER "libv4l1-videodev.h" CACHE INTERNAL "" ) +check_include_file( "linux/videodev2.h" HAVE_VIDEODEV_H ) +if( HAVE_VIDEODEV_H ) + set( VIDEODEV_HEADER "linux/videodev2.h" CACHE INTERNAL "" ) else( ) - check_include_file( "linux/videodev.h" HAVE_VIDEODEV_H ) - if( HAVE_VIDEODEV_H ) - set( VIDEODEV_HEADER "linux/videodev.h" CACHE INTERNAL "" ) + check_include_file( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H ) + if( HAVE_LIBV4L1_VIDEODEV_H ) + set( VIDEODEV_HEADER "libv4l1-videodev.h" CACHE INTERNAL "" ) else( ) if( BUILD_KOPETE_PLUGIN_MOTIONAUTOAWAY ) tde_message_fatal( "libv4l1-videodev.h or linux/videodev.h is required, but not found on your system" ) -- cgit v1.2.1