diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2016-11-22 07:54:28 +0200 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2016-12-01 08:14:28 +0200 |
commit | 0d7d41159eb3e7c361bf92a3c6ed2c0f9a2d6296 (patch) | |
tree | d4bd96dab340d318e9079dce9e337050b0131d0b | |
parent | 5899dbac4564f58bf2e1d17036d36ee294195c2f (diff) | |
download | piglit-0d7d41159eb3e7c361bf92a3c6ed2c0f9a2d6296.tar.gz |
util: link with WAYLAND_LIBRARIES when building for Wayland
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98769
-rw-r--r-- | tests/util/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index f197d8484..a9fc33900 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() |