[Piglit] [PATCH] util: link with WAYLAND_LIBRARIES when building for Wayland

Tapani Pälli tapani.palli at intel.com
Tue Nov 22 05:54:28 UTC 2016


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98769
---
 tests/util/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index f197d84..a9fc339 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -153,6 +153,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 	if(PIGLIT_HAS_X11)
 		list(APPEND UTIL_GL_LIBS ${X11_X11_LIB})
 	endif()
+
+        if(PIGLIT_HAS_WAYLAND)
+		list(APPEND UTIL_GL_LIBS ${WAYLAND_LIBRARIES})
+        endif()
+
 endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 
 piglit_include_target_api()
-- 
2.7.4



More information about the Piglit mailing list