Replace `if(OPENGL_egl_LIBRARY)` with `if(PIGLIT_BUILD_EGL_TESTS)`.

CC: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
---
 tests/CMakeLists.txt      | 4 ++--
 tests/util/CMakeLists.txt | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index da4a7cc..c8d2c6c 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(PIGLIT_BUILD_EGL_TESTS)
        add_subdirectory (egl)
-ENDIF(OPENGL_egl_LIBRARY)
+endif()
 
 IF(PIGLIT_BUILD_CL_TESTS)
        add_subdirectory (cl)
diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index dcc5634..1c5d853 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -85,7 +85,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
        )
 endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 
-if(OPENGL_egl_LIBRARY)
+if(PIGLIT_BUILD_EGL_TESTS)
        set(UTIL_GL_SOURCES
            ${UTIL_GL_SOURCES}
            piglit-util-egl.c
@@ -94,6 +94,6 @@ if(OPENGL_egl_LIBRARY)
                ${UTIL_GL_LIBS}
                ${OPENGL_egl_LIBRARY}
        )
-endif(OPENGL_egl_LIBRARY)
+endif()
 
 piglit_include_target_api()
-- 
1.8.3.1

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

Reply via email to