diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-10-16 15:05:40 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-10-31 10:43:34 -0700 |
commit | f238a7a000a6519447bc3815c8c2dbdec59dd113 (patch) | |
tree | 82e10473f881efb050a4365e8bd8db4d69403859 /tests/util/CMakeLists.txt | |
parent | 72ff251ee320a0e1bfbeb0e3d3e3c72a514394f2 (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/CMakeLists.txt')
-rw-r--r-- | tests/util/CMakeLists.txt | 6 |
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() |