Commit 519e34ea authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic 'matplotlib-detection-tweak'

051dc3ef Change Matplotlib test to avoid console output.
parents 9e8428db 051dc3ef
......@@ -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)
set(PARAVIEW_MATPLOTLIB_MODULE vtkRenderingMatplotlib)
list (APPEND _vtk_modules vtkRenderingMatplotlib)
......
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