From b8a4f6a0eb6bedf1b1d4eb845fabd0f6a635433a Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Fri, 9 Mar 2018 10:42:50 -0800 Subject: cmake: Use WAYLAND_LDFLAGS instead of WAYLAND_LIBRARIES. If the wayland library is found in a prefix, or some non-default place, WAYLAND_LIBRARIES will not contain -L, only the -lwayland-client part. If we want the whole set of flags, as returned by "pkg-config --libs wayland-client", we need to use WAYLAND_LDFLAGS instead. Signed-off-by: Rafael Antognolli Reviewed-by: Dylan Baker --- tests/util/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/util/CMakeLists.txt') diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index a9fc33900..0508eb030 100644 --- a/tests/util/CMakeLists.txt +++ b/tests/util/CMakeLists.txt @@ -155,7 +155,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") endif() if(PIGLIT_HAS_WAYLAND) - list(APPEND UTIL_GL_LIBS ${WAYLAND_LIBRARIES}) + list(APPEND UTIL_GL_LIBS ${WAYLAND_LDFLAGS}) endif() endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") -- cgit v1.2.3