cmake: Do a more thorough test for the old bcm Raspberry Pi libraries.

Fixes #5132.
This commit is contained in:
Ryan C. Gordon 2022-01-05 21:02:38 -05:00
parent f3255df9c0
commit 7967c97618
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 5 additions and 1 deletions

View File

@ -1221,7 +1221,11 @@ macro(CheckRPI)
set(CMAKE_REQUIRED_LIBRARIES "${VIDEO_RPI_LIBRARIES}")
check_c_source_compiles("
#include <bcm_host.h>
int main(int argc, char **argv) {}" HAVE_RPI)
#include <EGL/eglplatform.h>
int main(int argc, char **argv) {
EGL_DISPMANX_WINDOW_T window;
bcm_host_init();
}" HAVE_RPI)
set(CMAKE_REQUIRED_FLAGS "${ORIG_CMAKE_REQUIRED_FLAGS}")
set(CMAKE_REQUIRED_LIBRARIES)