[Piglit] [PATCH] util: add includes when building for Wayland

vadym.shovkoplias vadim.shovkoplias at gmail.com
Fri May 11 15:01:33 UTC 2018


This fixes following compile issue on OpenSUSE Tumbleweed:

piglit_wl_framework.c:33:10: fatal error: wayland-client.h:
No such file or directory #include <wayland-client.h>

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106477
Signed-off-by: Sergii Romantsov <sergii.romantsov at globallogic.com>
---
 tests/util/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index 0508eb0..3fa67d7 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -94,6 +94,9 @@ if(PIGLIT_USE_WAFFLE)
 		list(APPEND UTIL_GL_SOURCES
 			piglit-framework-gl/piglit_wl_framework.c
 		)
+		list(APPEND UTIL_GL_INCLUDES
+			${WAYLAND_wayland-client_INCLUDEDIR}
+		)
 	endif()
 	if(PIGLIT_HAS_X11)
 		list(APPEND UTIL_GL_SOURCES
-- 
2.7.4



More information about the Piglit mailing list