<div class="gmail_quote">On Fri, Sep 24, 2010 at 10:29 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Pat,<br>
<br>
I didn't change anything in ParaView, I'll leave that to the ParaView team.<br>
<br>
But here is a caveat: setting PYTHON_MODULE_PREFIX might not be<br>
enough because there is a bug in CMake's Modules/FindPythonLibs.cmake.<br>
It does not actually set the prefix of the module, it only sets the<br>
prefix in the name of the "init" function. I've fixed this bug in<br>
VTK's copy of FindPythonLibs.cmake, and someone should copy<br>
my changes from this file into CMake.<br></blockquote><div><br></div><div>I can take a look at that. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Because of this bug in CMake, it might be necessary for ParaView to<br>
set a null prefix for every python module that it builds, i.e.<br>
<br>
SET_TARGET_PROPERTIES(... PROPERTIES PREFIX "")<br>
<br>
But maybe ParaView uses VTK's FindPythonLibs.cmake instead of the<br>
one from CMake... I don't know.<br></blockquote><div><br></div><div>ParaView does use VTK's FindPythonLibs.cmake, and so this should also be fixed there.</div><div><br></div><div>Marcus</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
On Fri, Sep 24, 2010 at 8:12 AM, pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br>
> Not sure if you've done this already David, but there are two files in<br>
> paraview that will need updating:<br>
><br>
> CoProcessing/CoProcessor/CMakeLists.txt:SET(PYTHON_MODULE_PREFIX<br>
> ${CMAKE_SHARED_LIBRARY_PREFIX})<br>
> Utilities/VTKPythonWrapping/Executable/CMakeLists.txt:<br>
> SET(PYTHON_MODULE_PREFIX "lib")<br>
><br>
> PYTHON_MODULE_PREFIX can be left undefined, or set to the empty string. It<br>
> is used by FindPythonLibs.cmake to create "init[prefix][modulename]()"<br>
> references.<br>
><br>
> Pat<br>
</div></div></blockquote></div><br>