cmake: use proper WAYLAND_INCLUDE_DIRS variable

Submitted by Pascal Bach on Oct. 4, 2018, 2:06 p.m.

Details

Message ID 20181004140614.30447-1-pascal.bach@siemens.com
State New
Headers show
Series "cmake: use proper WAYLAND_INCLUDE_DIRS variable" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Pascal Bach Oct. 4, 2018, 2:06 p.m.
WAYLAND_wayland-client_INCLUDEDIR is an internal variable and is not correctly
set when cross compiling. WAYLAND_INCLUDE_DIRS includes the correct path even
when cross compiling.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
---
 tests/util/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index a5f080156..a303a9f58 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -97,7 +97,7 @@  if(PIGLIT_USE_WAFFLE)
 			piglit-framework-gl/piglit_wl_framework.c
 		)
 		list(APPEND UTIL_GL_INCLUDES
-			${WAYLAND_wayland-client_INCLUDEDIR}
+			${WAYLAND_INCLUDE_DIRS}
 		)
 	endif()
 	if(PIGLIT_HAS_X11)