Skip to content
Snippets Groups Projects
Commit 1de6649a authored by Bienchen's avatar Bienchen
Browse files

SCHWED-4612: Set OpenGL GL preferences, new Python module name for sip in...

SCHWED-4612: Set OpenGL GL preferences, new Python module name for sip in check if sip is installed.
parent 90c9ad16
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,9 @@ option(PROFILE "whether to compile with profiling support" ...@@ -31,7 +31,9 @@ option(PROFILE "whether to compile with profiling support"
option(ENABLE_GUI "whether the graphical user interface should be enabled" option(ENABLE_GUI "whether the graphical user interface should be enabled"
ON) ON)
option(ENABLE_GFX "whether graphics support should be enabled" option(ENABLE_GFX "whether graphics support should be enabled"
ON) ON)
option(ENABLE_GFX "whether to use the OpenGL Legacy GL implementation"
OFF)
option(ENABLE_IMG "whether the image processing module should be compiled" option(ENABLE_IMG "whether the image processing module should be compiled"
ON) ON)
option(ENABLE_INFO "whether openstructure should be compiled with support for the info library" option(ENABLE_INFO "whether openstructure should be compiled with support for the info library"
...@@ -221,6 +223,11 @@ else() ...@@ -221,6 +223,11 @@ else()
endif() endif()
endif() endif()
if (ENABLE_GFX) if (ENABLE_GFX)
if (OPENGLPREFERENCE_LEGACY)
set(OpenGL_GL_PREFERENCE LEGACY)
else()
set(OpenGL_GL_PREFERENCE GLVND)
endif(OPENGLPREFERENCE_LEGACY)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment