possibility to only use legacy opengl

This commit is contained in:
alemuntoni 2021-09-30 12:08:01 +02:00
parent 8051b58ed6
commit ea61ad59ec
2 changed files with 1 additions and 8 deletions

View File

@ -10,7 +10,6 @@ option(BUILD_MINI "Build only a minimal set of plugins" OFF)
option(BUILD_STRICT "Strictly enforce resolution of all symbols" ON)
option(BUILD_WITH_DOUBLE_SCALAR "Use double type instead of float type for scalars" OFF)
option(ENABLE_MESHLAB_DEBUG_LOG_FILE "If enabled, all the logs of MeshLab will be also saved into a log file" OFF)
option(USE_OPENGL_GLVND "Prefer GLVND OpenGL on linux instead of the default legacy" OFF)
option(BUILD_ONLY_MESHLAB_LIBRARIES "Build only meshlab-common and plugins" OFF)
option(USE_DEFAULT_BUILD_AND_INSTALL_DIRS "If set to OFF, it expects that you set manually the binary and install directories" ON)

View File

@ -2,13 +2,7 @@
# Copyright 2019, 2020, Visual Computing Lab, ISTI - Italian National Research Council
# SPDX-License-Identifier: BSL-1.0
if(POLICY CMP0072)
if (USE_OPENGL_GLVND)
cmake_policy(SET CMP0072 NEW) # OpenGL GLVND
else()
cmake_policy(SET CMP0072 OLD) # OpenGL legacy
endif()
endif()
set(OpenGL_GL_PREFERENCE LEGACY) # OpenGL legacy
# Enable setting options with SET cmake command
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)