diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-11-12 16:07:55 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2020-11-12 16:15:40 -0800 |
commit | 852513e7a6d54f1da37bd7addcb84cc29c560dd4 (patch) | |
tree | 935a093e574f9a36e40252d3250d4cecfdc16456 /unsupported/test/CMakeLists.txt | |
parent | bec72345d69917f475e577d23df0ca4ed967a4f0 (diff) |
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.
Diffstat (limited to 'unsupported/test/CMakeLists.txt')
-rw-r--r-- | unsupported/test/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 4cb962ad6..cea4bbe69 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -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) |