Commit a2285512 authored by David Thompson's avatar David Thompson
Browse files

Fix link error.

The `CoProcessingPythonScriptExample` executable is not getting linked
due to a missing `vtkRenderingMatplotlib` dependency added to the list
of VTK modules when bringing in categorical color support. Explicitly
add the library as a dependency if it exists.

Change-Id: I9f08be9dbc2cac62fa8ee49de364975684ee5454
parent 4a1d587e
......@@ -351,6 +351,7 @@ if (PYTHON_EXECUTABLE)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import matplotlib"
RESULT_VARIABLE IMPORT_MATPLOTLIB_EXITCODE)
if (${IMPORT_MATPLOTLIB_EXITCODE} EQUAL 0)
set(PARAVIEW_MATPLOTLIB_MODULE vtkRenderingMatplotlib)
list (APPEND _vtk_modules vtkRenderingMatplotlib)
endif()
endif()
......
......@@ -12,7 +12,7 @@ add_executable(CoProcessingPythonScriptExample
PythonScriptCoProcessingExample.cxx
vtkPVCustomTestDriver.cxx)
target_link_libraries(CoProcessingPythonScriptExample
vtkCoProcessorImplementation vtkCPTestDriver)
vtkCoProcessorImplementation vtkCPTestDriver ${PARAVIEW_MATPLOTLIB_MODULE})
#------------------------------------------------------------------------------
# Generate the image compare tool.
......
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