浏览代码

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

Fixes #5132.
Ryan C. Gordon 3 年之前
父节点
当前提交
7967c97618
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      cmake/sdlchecks.cmake

+ 5 - 1
cmake/sdlchecks.cmake

@@ -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)