Commit a55006c1 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

Check if the PythonD target exists

This allows for external Python wrapping to work, and also continues to
work as expected when wrapping VTK modules. The dependency source
directory was also being added twice (once here, and once with the
binary directory in CMake/Wrapping.cmake).

Change-Id: Ie33ae695b66655b2b7c424f08c55cb18f25d882e
parent c432ae16
......@@ -29,11 +29,8 @@ function(vtk_add_python_wrapping module_name module_srcs module_hdrs)
# Figure out the dependent PythonXYD libraries for the module
foreach(dep ${${vtk-module}_LINK_DEPENDS})
if(NOT "${vtk-module}" STREQUAL "${dep}")
if(${dep}_WRAP_PYTHON)
list(APPEND extra_links ${dep}PythonD)
list(APPEND VTK_WRAP_INCLUDE_DIRS ${${dep}_SOURCE_DIR})
endif()
if(NOT "${vtk-module}" STREQUAL "${dep}" AND TARGET ${dep}PythonD)
list(APPEND extra_links ${dep}PythonD)
endif()
endforeach()
......
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