[Piglit] [PATCH] cmake: Require egl 11.0.

Vinson Lee vlee at freedesktop.org
Mon Sep 12 18:30:14 UTC 2016


mesa 11.0 is needed for EGLDeviceEXT symbol.

egl_ext_device_query.c: In function ‘main’:
egl_ext_device_query.c:33:2: error: unknown type name ‘EGLDeviceEXT’
  EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
  ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 536f775..ce7f3f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -412,7 +412,7 @@ endif(HAVE_LIBCACA)
 endif(GBM_FOUND)
 
 if(PIGLIT_USE_WAFFLE AND ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
-	pkg_check_modules(EGL egl)
+	pkg_check_modules(EGL egl>=11.0)
 endif()
 
 if(EGL_FOUND)
-- 
1.8.3.1



More information about the Piglit mailing list