From de8bbc9a5c5f2ce9e36e7256dfc155269b165be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 28 Aug 2024 21:33:17 +0800 Subject: [PATCH] Camera (FreeBSD): fix module was incorrectly disabled (v2) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62bd9021b..52a0e17e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1203,6 +1203,9 @@ if(WIN32) endif() set(CMAKE_CXX_STANDARD 17) endif() +if(FreeBSD) + set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include") +endif() if(LINUX OR FreeBSD) CHECK_INCLUDE_FILE("linux/videodev2.h" HAVE_LINUX_VIDEODEV2) if(HAVE_LINUX_VIDEODEV2)