From c21003feab97a2f2d60353f38d973d374a51749d Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 12 Dec 2013 13:42:15 -0600 Subject: [PATCH] If we are using OpenGL ES 3, then don't check for OpenGL/GLU --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f2ba3adcb5..e45ff3c760 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,10 +350,12 @@ endif() if(NOT ANDROID) - include(FindOpenGL) - include_directories(${OPENGL_INCLUDE_DIR}) - if(NOT OPENGL_GLU_FOUND) - message(FATAL_ERROR "GLU is required but not found") + if(NOT USE_GLES3) + include(FindOpenGL) + include_directories(${OPENGL_INCLUDE_DIR}) + if(NOT OPENGL_GLU_FOUND) + message(FATAL_ERROR "GLU is required but not found") + endif() endif() include(FindALSA OPTIONAL)