[Piglit] [PATCH] cmake: Use WAYLAND_LDFLAGS instead of WAYLAND_LIBRARIES.

Dylan Baker dylan at pnwbakers.com
Mon Mar 12 22:35:51 UTC 2018


Quoting Rafael Antognolli (2018-03-09 10:42:50)
> 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
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20180312/cb07651a/attachment.sig>


More information about the Piglit mailing list