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/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/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index da4a7cc1c..af842fc30 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,9 +23,9 @@ if (NOT APPLE) add_subdirectory (glean) endif () -IF(OPENGL_egl_LIBRARY) +IF(EGL_FOUND) add_subdirectory (egl) -ENDIF(OPENGL_egl_LIBRARY) +ENDIF(EGL_FOUND) IF(PIGLIT_BUILD_CL_TESTS) add_subdirectory (cl) |