Don't build tests and examples when building with EGL

master
Cloudef ago%!(EXTRA string=13 years) committed by Jari Vetoniemi
parent c878281487
commit 29b4ed4e9a
  1. 3
      CMakeLists.txt

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

Loading…
Cancel
Save