Commit de2d18af authored by Ken Martin's avatar Ken Martin

Fix for systems that only configure once

Fix for systems that only configure once. They were using an old default
value for the backend hack.
parent 26480bda
......@@ -28,7 +28,13 @@ endif()
# in for the first CMake invocation for modules that depend on the backend
# chosen.
if(NOT DEFINED VTK_RENDERING_BACKEND)
set(VTK_RENDERING_BACKEND "OpenGL")
# has the application defined a desired default for the backend?
# if not, use VTKs default of OpenGL
if(DEFINED VTK_RENDERING_BACKEND_DEFAULT)
set(VTK_RENDERING_BACKEND ${VTK_RENDERING_BACKEND_DEFAULT})
else()
set(VTK_RENDERING_BACKEND "OpenGL2")
endif()
set(_backend_set_for_first_cmake TRUE)
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment