[Piglit] [PATCH] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

Emil Velikov emil.l.velikov at gmail.com
Mon Nov 24 18:05:25 PST 2014


Similar to the earlier patch for waffle-less (glut) builds. The need
for this patch became apparent as we removed the libGL link dependency
in waffle.

Cc: Mark Janes <mark.a.janes at intel.com>
Reported-by: Mark Janes <mark.a.janes at intel.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 tests/util/CMakeLists.gl.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/util/CMakeLists.gl.txt b/tests/util/CMakeLists.gl.txt
index 34ad63e..ecd9be3 100644
--- a/tests/util/CMakeLists.gl.txt
+++ b/tests/util/CMakeLists.gl.txt
@@ -30,6 +30,10 @@ IF(PIGLIT_BUILD_GLX_TESTS)
 		${UTIL_GL_SOURCES}
 		piglit-glx-util.c
 	)
+	link_libraries(
+		${OPENGL_gl_LIBRARY}
+	)
+
 ENDIF(PIGLIT_BUILD_GLX_TESTS)
 
 piglit_add_library (piglitutil_${piglit_target_api}
-- 
2.1.3



More information about the Piglit mailing list