<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>CMake version 
2.0.3</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>Platform 
HPUX</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>On HPUX the linker 
accepts library names with the -l&lt;name&gt; parameter. It requires library 
filenames to start with "lib" and end with either ".a" or ".sl". The linker will 
then automatically try to locate lib&lt;name&gt;.sl and lib&lt;name&gt;.a. For 
the exceptions, where the library filename does not start with "lib" and/or 
doesn't end with ".sl" or ".a", the linker also accepts -l:&lt;filename&gt; 
where filename can be any valid filename. I happen to have to link to a third 
party library with the name ToolKit.sl. I therefore need to add -l:ToolKit.sl to 
the linker command-line. So I added "&lt;libdir&gt;/:ToolKit.sl" to the link 
list. But CMake changes this into -L&lt;libdir&gt; -l:ToolKit and always strips 
the ending .sl from the name. This makes the linker line invalid as the 
&lt;filename&gt;&nbsp;should be the complete path. I also tried to add 
":&lt;libdir&gt;/ToolKit.sl", but that ended up in -L&lt;libdir&gt; -lToolKit 
with both the : and .sl being stripped by CMake.</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>The only thing that 
works is:</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2>LINK_DIRECTORIES(&lt;libdir&gt;)</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2>TARGET_LINK_LIBRARIES(&lt;target&gt; ":ToolKit.sl")</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>But as soon as I 
link the newly created target into another target, the linker will complain 
about ToolKit.sl not being found :-((</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>Is there anything 
else I can try? (except the most obvious one - trying to force the 3rd party 
library to use lib&lt;Name&gt;.sl)</FONT></SPAN></DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935155213-04102004><FONT face=Arial size=2>- 
Kris</FONT></SPAN></DIV></BODY></HTML>

<P><B><FONT SIZE=2 FACE="Arial">+-+-+- Email Confidentiality Footer +-+-+-</FONT></B> </P>

<P><FONT SIZE=2 FACE="Arial">Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not print, retain, copy nor disseminate this message or any part of it to anyone and you should notify the sender by reply email and destroy this message. Neglecting this clause could be a breach of confidence. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that are not related to the official business of my firm shall be understood as neither given nor endorsed by it.</FONT></P>