If the wayland library is found in a prefix, or some non-default place, WAYLAND_LIBRARIES will not contain -L<path to lib>, 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 <[email protected]> --- tests/util/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.14.3 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
