From 3b461ba02f6540b316b872c684b180dfa3095371 Mon Sep 17 00:00:00 2001 From: Mircea Gherzan Date: Fri, 12 Feb 2016 00:22:48 +0100 Subject: [PATCH] cmake: use the EGL_CFLAGS_OTHER Without them, the build will fail on a system without the X headers with a recent Mesa from the master branch. The EGL_CFLAGS_OTHER define the MESA_EGL_NO_X11_HEADERS macro that guards the #includes of the X headers. Signed-off-by: Mircea Gherzan Signed-off-by: Ben Widawsky --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d136edcad..736677fb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -402,6 +402,7 @@ endif() if(EGL_FOUND) add_definitions(-DPIGLIT_HAS_EGL) include_directories(${EGL_INCLUDE_DIRS}) + add_definitions (${EGL_CFLAGS_OTHER}) endif() if(PIGLIT_BUILD_GLES1_TESTS AND NOT EGL_FOUND) -- GitLab