mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
Disable testing of OpenGL by default.
The `OpenGLSupport` module contains mostly deprecated features, and the test is highly GL context-dependent, relies on deprecated GLUT, and requires a display. Until the module is updated to support modern OpenGL and the test to use newer windowing frameworks (e.g. GLFW) it's probably best to disable the test by default. The test can be enabled with `cmake -DEIGEN_TEST_OPENGL=ON`. See #2053 for more details.
This commit is contained in:
parent
bec72345d6
commit
852513e7a6
@ -81,8 +81,8 @@ else()
|
||||
ei_add_property(EIGEN_MISSING_BACKENDS "fftw, ")
|
||||
endif()
|
||||
|
||||
option(EIGEN_TEST_NO_OPENGL "Disable OpenGL support in unit tests" OFF)
|
||||
if(NOT EIGEN_TEST_NO_OPENGL)
|
||||
option(EIGEN_TEST_OPENGL "Enable OpenGL support in unit tests" OFF)
|
||||
if(EIGEN_TEST_OPENGL)
|
||||
find_package(OpenGL)
|
||||
find_package(GLUT)
|
||||
find_package(GLEW)
|
||||
|
Loading…
Reference in New Issue
Block a user