1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Only disable tests and examples if not using OpenGL.

This commit is contained in:
Camilla Berglund 2013-02-11 01:29:45 +01:00
parent d97dddc8c4
commit dca9b2db07

View File

@ -38,9 +38,11 @@ if (GLFW_USE_EGL)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules)
find_package(EGL REQUIRED) find_package(EGL REQUIRED)
set(GLFW_BUILD_EXAMPLES OFF) if (NOT _GLFW_USE_OPENGL)
set(GLFW_BUILD_TESTS OFF) set(GLFW_BUILD_EXAMPLES OFF)
message(STATUS "NOTE: Examples and tests are disabled for EGL") set(GLFW_BUILD_TESTS OFF)
message(STATUS "NOTE: Examples and tests require OpenGL")
endif()
else() else()
set(_GLFW_USE_OPENGL 1) set(_GLFW_USE_OPENGL 1)
endif() endif()