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)