mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Only disable tests and examples if not using OpenGL.
This commit is contained in:
parent
d97dddc8c4
commit
dca9b2db07
|
@ -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)
|
||||||
|
|
||||||
|
if (NOT _GLFW_USE_OPENGL)
|
||||||
set(GLFW_BUILD_EXAMPLES OFF)
|
set(GLFW_BUILD_EXAMPLES OFF)
|
||||||
set(GLFW_BUILD_TESTS OFF)
|
set(GLFW_BUILD_TESTS OFF)
|
||||||
message(STATUS "NOTE: Examples and tests are disabled for EGL")
|
message(STATUS "NOTE: Examples and tests require OpenGL")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set(_GLFW_USE_OPENGL 1)
|
set(_GLFW_USE_OPENGL 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user