[vtkusers] Relative paths in MacOS libraries

David Flitney flitney at fmrib.ox.ac.uk
Tue Oct 25 10:53:18 EDT 2005


On 24 Oct 2005, at 20:16, Martin Costabel wrote:

> In the CMakeCache.txt file, I see this as
> CMAKE_SHARED_LINKER_FLAGS:STRING=-L/sw/lib -install_name  
> /sw/lib/vtk/`basename <TARGET>`
> too, but when the Makefiles are created, it is expanded; I see, for  
> example, in Common/Makefile:

Yes. My CMakeCache.txt file contains a very similar line...

>         @echo "Building shared library  
> /sw/src/fink.build/vtk-py23-5.0-0.20051008-2/VTK/bin/ 
> libvtkCommonTCL.dylib..."
>         /sw/bin/cmake -E remove -f  
> /sw/src/fink.build/vtk-py23-5.0-0.20051008-2/VTK/bin/ 
> libvtkCommonTCL.dylib
>         /sw/bin/g++-3.3 -dynamiclib -Wl,-flat_namespace,-U,_environ  
> -L/sw/lib -install_name /sw/lib/vtk/`basename  
> /sw/src/fink.build/vtk-py23-5.0-0.20051008-2/VTK/bin/ 
> libvtkCommonTCL.dylib`   -o  
> /sw/src/fink.build/vtk-py23-5.0-0.20051008-2/VTK/bin/ 
> libvtkCommonTCL.dylib $(vtkCommonTCL_SRC_OBJS)  
> $(vtkCommonTCL_EXTERNAL_OBJS)  
> -L/sw/src/fink.build/vtk-py23-5.0-0.20051008-2/VTK/bin -L/sw/lib  
> -lvtkCommon -ltcl -lm -framework AppKit -lpthread -lm  -lgcc

...but I don't get this. The file  
Common/CMakeFiles/vtkCommon.dir/build.make has this line in it but with  
<TARGET> unexpanded.

-- 
Cheers, Dave

Dave Flitney, IT Manager
Oxford Centre for Functional MRI of the Brain
E:flitney at fmrib.ox.ac.uk W:+44-1865-222713 F:+44-1865-222717
URL: http://www.fmrib.ox.ac.uk/~flitney




More information about the vtkusers mailing list