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.

v2: Try to handle both gl and gles*.

Cc: Mark Janes <[email protected]>
Reported-by: Mark Janes <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
---
 tests/util/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index 98eedd0..b95ed2f 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -83,6 +83,11 @@ if(PIGLIT_USE_WAFFLE)
        list(APPEND UTIL_GL_LIBS
                ${WAFFLE_LDFLAGS}
        )
+       IF(PIGLIT_BUILD_GLX_TESTS)
+               list(APPEND UTIL_GL_LIBS
+                       ${OPENGL_gl_LIBRARY}
+               )
+       ENDIF(PIGLIT_BUILD_GLX_TESTS)
 else()
        list(APPEND UTIL_GL_SOURCES
                piglit-framework-gl/piglit_glut_framework.c
-- 
2.1.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to