Commit a3bb3dad authored by David C. Lonie's avatar David C. Lonie
Browse files

Check python version when matplotlib is enabled.

Change-Id: I33317f0928b8ec68497502989d8633ad9c101d3c
parent a2a0f8e3
# Check that python is both found and version >= 2.6
if(NOT PYTHON_EXECUTABLE)
message(FATAL_ERROR "Cannot build RenderingMatplotlib: PYTHON_EXECUTABLE not set.")
endif()
if(${PYTHON_VERSION_STRING} VERSION_LESS "2.6")
message(FATAL_ERROR "Cannot build RenderingMatplotlib: Python is too old. "
"Required: >= 2.6, Found: ${PYTHON_VERSION_STRING}")
endif()
set(Module_SRCS
vtkMatplotlibMathTextUtilities.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
......
Supports Markdown
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