mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
#6797 Add option (on by default) to force legacy OpenGL ABIon Linux
This commit is contained in:
1 parent
cc2531a551
commit
6d8eb4ccfa
1 file changed
+9
@@ -6,6 +6,15 @@ project (ResInsight)
|
||||
set (VIZ_MODULES_FOLDER_NAME Fwk/VizFwk)
|
||||
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
|
||||
# The new GLVND OpenGL-libraries may cause issues in some virtualized environments
|
||||
if (UNIX)
|
||||
option(RESINSIGHT_PREFER_LEGACY_OPENGL "Link with Legacy OpenGL libraries. This may be necessary in some virtualization environments" ON)
|
||||
if (RESINSIGHT_PREFER_LEGACY_OPENGL)
|
||||
set(OpenGL_GL_PREFERENCE LEGACY)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
SET(BUILD_SHARED_LIBS OFF CACHE BOOL "ERT: Build shared libraries")
|
||||
|
||||
Reference in new issue
Block a user