Commit 9c2d59de authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ParaViewPlugins: create the hierarchy when CS wrapping

parent a946c50f
include(ParaViewMacros)
include(vtkWrapHierarchy)
if(DEFINED PV_INSTALL_PLUGIN_DIR)
message(WARNING "`PV_INSTALL_PLUGIN_DIR` is no longer supported as of ParaView 5.5. "
......@@ -122,6 +123,9 @@ MACRO(ADD_SERVER_MANAGER_EXTENSION OUTSRCS Name Version XMLFile)
IF(HDRS)
include(vtkWrapClientServer)
vtk_wrap_hierarchy(${Name} ${VTK_MODULES_DIR}
"${ARGN}")
# Plugins should not use unified bindings. The problem arises because the
# PythonD library links to the plugin itself, but the CS wrapping code
# lives in the plugin as well. With unified bindings, the CS wrapping
......@@ -1133,6 +1137,8 @@ macro(pv_process_modules)
if (NOT ${_module}_EXCLUDE_FROM_WRAPPING AND
NOT ${_module}_IS_TEST AND
NOT ${_module}_THIRD_PARTY)
vtk_wrap_hierarchy(${module_name} ${VTK_MODULES_DIR}
"${ARG_SOURCES}")
set(NO_PYTHON_BINDINGS_AVAILABLE TRUE)
vtk_add_cs_wrapping(${_module})
list(APPEND plugin_cs_modules ${_module})
......
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