Commit 051dc3ef authored by David Thompson's avatar David Thompson
Browse files

Change Matplotlib test to avoid console output.

Change-Id: Ied842cffc974f9bc1eee5c546a3951424c0c97a2
parent 4a1d587e
......@@ -349,7 +349,9 @@ endif()
# If so, add vtkRenderingMatplotlib for math text rendering.
if (PYTHON_EXECUTABLE)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import matplotlib"
RESULT_VARIABLE IMPORT_MATPLOTLIB_EXITCODE)
RESULT_VARIABLE IMPORT_MATPLOTLIB_EXITCODE
OUTPUT_VARIABLE IMPORT_MATPLOTLIB_OUTPUT
ERROR_VARIABLE IMPORT_MATPLOTLIB_ERROR)
if (${IMPORT_MATPLOTLIB_EXITCODE} EQUAL 0)
list (APPEND _vtk_modules vtkRenderingMatplotlib)
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