[CMake] [Module] New FindSWIG / UseSWIG

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Apr 20 12:03:52 EDT 2007


On 4/20/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
> On 2007-04-20 16:14+0200 Mathieu Malaterre wrote:
>
> > Hello,
> >
> > I was pretty unhappy with the current swig support in cmake, so I
> > decided to rewrite it from scratch. You can find my work here:
> >
> > $ svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/TestSWIG
> > or
> > http://gdcm.svn.sourceforge.net/viewvc/gdcm/Sandbox/TestSWIG/
> >
> > [...]Comments welcome,
>
> Hi Mathieu:
>
> There have been many improvements to the current FindSWIG.cmake that can
> be found as attachments to the bug tracker report
> given at http://public.kitware.com/Bug/bug.php?op=show&bugid=4145.
>
> How does your work compare with that improved version?

Thanks for the link ! I have been doing basically the same thing:
deduce the lib path from the swig executable. But this one looks more
robust.
Anyway my work was not too much about system inspection, but rather
redo the user interface. The one distributed with cmake was simply
impossible to use in my case (mix of swig11 and swig13), and calling
'install' on a swig target was not user friendly...

Anyway thanks for the link, very useful indeed,
-Mathieu


More information about the CMake mailing list