Commit 3b461ba0 authored by Mircea Gherzan's avatar Mircea Gherzan Committed by Ben Widawsky

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: default avatarMircea Gherzan <mircea.gherzan@intel.com>
Signed-off-by: default avatarBen Widawsky <benjamin.widawsky@intel.com>
parent 671289c3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment