[Cmake] Link Lib Bug?
Bill Hoffman
bill . hoffman at kitware . com
Mon, 04 Jun 2001 09:21:44 -0400
The TARGET_LINK_LIBRARIES command can be used to add libraries to
only one target.
At 08:26 AM 6/2/2001 +0100, John Biddiscombe wrote:
>The Library commands in cmake appear to be a bit unselective. I'm dumping out the lib linked to by each target...
>
>example
>
>Mace_LINK_LIB = \
> C:/PROGRA~1/Tcl/bin/tcl83.lib \
> opengl32 \
> C:/Program Files/Tcl/lib/tk82.lib \
> vtkCommon \
> vtkFiltering \
> vtkImaging \
> vtkGraphics \
> vtkRendering
>
>vtkRendering_LINK_DIR = \
> C:/PROGRA~1/Tcl/bin/tcl83.lib \
> opengl32 \
> C:/Program Files/Tcl/lib/tk82.lib \
> vtkCommon \
> vtkFiltering \
> vtkImaging \
> vtkGraphics
>
>Mace and Rendering are linking to tcl and tk when these are selected. This is wrong. How do I stop this? (Only the Rendering_TCL should be doing this).
>
>[Should the ADD_LIBRARY(stuff) command have the target(s) specified?]
>
>[NB. I may be doing something wrong, in which case please correct me!]
>
>thanks
>
>JB
>
>_______________________________________________
>Cmake mailing list
>Cmake at public . kitware . com
>http://public . kitware . com/mailman/listinfo/cmake