Don't build tests and examples when building with EGL

This commit is contained in:
Cloudef 2012-04-25 09:33:29 +03:00 committed by Jari Vetoniemi
parent c878281487
commit 29b4ed4e9a

View File

@ -48,7 +48,10 @@ elseif (UNIX AND NOT APPLE)
set(_GLFW_X11 1) set(_GLFW_X11 1)
if (GLFW_USE_EGL) if (GLFW_USE_EGL)
set(_GLFW_X11_EGL 1) set(_GLFW_X11_EGL 1)
set(GLFW_BUILD_EXAMPLES 0)
set(GLFW_BUILD_TESTS 0)
message(STATUS "Building GLFW for X11 and EGL on a Unix-like system") message(STATUS "Building GLFW for X11 and EGL on a Unix-like system")
message(STATUS "NOTE: Examples and tests are disabled for EGL")
else() else()
set(_GLFW_X11_GLX 1) set(_GLFW_X11_GLX 1)
message(STATUS "Building GLFW for X11 and GLX on a Unix-like system") message(STATUS "Building GLFW for X11 and GLX on a Unix-like system")