Commit c1a6064c authored by Brad King's avatar Brad King
Browse files

vtkPythonWrapping: Set python module prefix on wrapper targets

Commit dd2c9df0 (Cleanup building of static modules for Python,
2012-08-02) dropped use of python_add_module but did not port all
functionality to the new macro.  Add a missing property to remove the
"lib" prefix from python module names.  Otherwise they cannot be
imported by python.

Change-Id: Ica3539fbb86a4147499e4bedb7dfe3900a645896
parent 68ba77b5
......@@ -73,6 +73,7 @@ endfunction()
function(_vtk_add_python_module name)
if (BUILD_SHARED_LIBS)
add_library(${name} MODULE ${ARGN})
set_property(TARGET ${name} PROPERTY PREFIX "${PYTHON_MODULE_PREFIX}")
if (WIN32 AND NOT CYGWIN)
# when building shared on Windows, the python module files need to be
# named as *.pyd
......
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