Commit beec033e authored by Chad Versace's avatar Chad Versace

cmake: Do not add GLES2 targets if OPENGL_gles2_LIBRARY is not found

Signed-off-by: default avatarChad Versace <chad.versace@intel.com>
parent 6e4cb28d
set(piglit_target_api "gles2")
add_definitions(
-DUSE_OPENGL_ES2
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
if(OPENGL_gles2_LIBRARY AND OPENGL_egl_LIBRARY)
add_definitions(
-DUSE_OPENGL_ES2
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
endif(OPENGL_gles2_LIBRARY AND OPENGL_egl_LIBRARY)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment