aboutsummaryrefslogtreecommitdiff
path: root/ports/vtk/pythonwrapper.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/vtk/pythonwrapper.patch')
-rw-r--r--ports/vtk/pythonwrapper.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/vtk/pythonwrapper.patch b/ports/vtk/pythonwrapper.patch
new file mode 100644
index 000000000..d7585cf0f
--- /dev/null
+++ b/ports/vtk/pythonwrapper.patch
@@ -0,0 +1,19 @@
+diff --git a/CMake/vtkModuleWrapPython.cmake b/CMake/vtkModuleWrapPython.cmake
+index 5d2c2e1bf..e33a16d68 100644
+--- a/CMake/vtkModuleWrapPython.cmake
++++ b/CMake/vtkModuleWrapPython.cmake
+@@ -75,10 +75,13 @@ function (_vtk_module_wrap_python_sources module sources classes)
+ "$<TARGET_PROPERTY:${_vtk_python_target_name},COMPILE_DEFINITIONS>")
+ set(_vtk_python_genex_include_directories
+ "$<TARGET_PROPERTY:${_vtk_python_target_name},INCLUDE_DIRECTORIES>")
++ set(_vtk_python_genex_interface_include_directories
++ "$<TARGET_PROPERTY:${_vtk_python_target_name},INTERFACE_INCLUDE_DIRECTORIES>")
+ file(GENERATE
+ OUTPUT "${_vtk_python_args_file}"
+ CONTENT "$<$<BOOL:${_vtk_python_genex_compile_definitions}>:\n-D\'$<JOIN:${_vtk_python_genex_compile_definitions},\'\n-D\'>\'>\n
+-$<$<BOOL:${_vtk_python_genex_include_directories}>:\n-I\'$<JOIN:${_vtk_python_genex_include_directories},\'\n-I\'>\'>\n")
++$<$<BOOL:${_vtk_python_genex_include_directories}>:\n-I\'$<JOIN:${_vtk_python_genex_include_directories},\'\n-I\'>\'>\n
++$<$<BOOL:${_vtk_python_genex_interface_include_directories}>:\n-I\'$<JOIN:${_vtk_python_genex_interface_include_directories},\'\n-I\'>\'>\n")
+
+ _vtk_module_get_module_property("${module}"
+ PROPERTY "hierarchy"