mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 04:53:50 +00: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)
|
||||||
|
|
||||||
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user