Skip to content
Snippets Groups Projects
Commit fc44f4af authored by Oksana Shadura's avatar Oksana Shadura Committed by Oksana Shadura
Browse files

[ROOT-10640] OpenGL/Glew should be working only with X11 (for Linux)

parent a020a70b
No related branches found
No related tags found
No related merge requests found
......@@ -335,6 +335,15 @@ if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(dataframe_defvalue OFF)
endif()
# OpenGL should be working only with x11 (Linux),
# in case when -Dall=ON -Dx11=OFF, we will just disable opengl.
if(NOT WIN32 AND NOT APPLE)
if(opengl AND NOT x11)
message(STATUS "OpenGL was disabled, since it is required to have enabled x11 on Linux")
set(opengl OFF CACHE BOOL "OpenGL requires to have enabled x11" FORCE)
endif()
endif()
#---Options depending of CMake Generator-------------------------------------------------------
if( CMAKE_GENERATOR STREQUAL Ninja)
set(fortran_defvalue OFF)
......
......@@ -514,6 +514,7 @@ if(opengl)
endif()
#---Check for GLEW -------------------------------------------------------------------
# Opengl is "must" requirement for Glew.
if(opengl AND NOT builtin_glew)
message(STATUS "Looking for GLEW")
if(fail-on-missing)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment