[Piglit] [PATCH] cmake: Use WAYLAND_LDFLAGS instead of WAYLAND_LIBRARIES.
Rafael Antognolli
rafael.antognolli at intel.com
Fri Mar 9 18:42:50 UTC 2018
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 <rafael.antognolli at intel.com>
---
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
More information about the Piglit
mailing list