summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-10-16 15:05:40 -0700
committerChad Versace <chad.versace@linux.intel.com>2013-10-31 10:43:34 -0700
commitf238a7a000a6519447bc3815c8c2dbdec59dd113 (patch)
tree82e10473f881efb050a4365e8bd8db4d69403859 /tests/util
parent72ff251ee320a0e1bfbeb0e3d3e3c72a514394f2 (diff)
cmake: Use pkg-config to find EGL
This restricts building the EGL tests to Linux only. No problem, though, because no other platform yet has EGL anyway. Should fix Ian's build failure with egl-terminate-then-unbind-context.c. CC: Ian Romanick <idr@freedesktop.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index dcc5634d0..7e5c61585 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -85,15 +85,15 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-if(OPENGL_egl_LIBRARY)
+if(EGL_FOUND)
set(UTIL_GL_SOURCES
${UTIL_GL_SOURCES}
piglit-util-egl.c
)
set(UTIL_GL_LIBS
${UTIL_GL_LIBS}
- ${OPENGL_egl_LIBRARY}
+ ${EGL_LDFLAGS}
)
-endif(OPENGL_egl_LIBRARY)
+endif()
piglit_include_target_api()