From cbdf8d0eaec16a0052b67e6e076dab7e667f505f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Mon, 21 Nov 2016 08:10:52 +0200 Subject: [PATCH] util: link with WAYLAND_LIBRARIES when building for Wayland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli 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