<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Verdana;
        color:gray;
        font-weight:bold;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:gray;
        font-weight:bold;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'>Ah..
think I&#8217;ve answered my own question.&nbsp; Looks like I need to use
TARGET_LINK_LIBRARIES() instead of ADD_DEPENDENCIES().<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<div>

<div style='border:none;border-top:dotted silver 1.0pt;padding:4.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=1 color="#666666" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#666666;font-weight:bold'>Aaron
C. Meadows</span></span></font></b><font size=1 color="#666666" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#666666'> </span></font><font
size=1 color="#666666" face=Arial><span style='font-size:9.0pt;font-family:
Arial;color:#666666'><o:p></o:p></span></font></p>

</div>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> cmake-bounces@cmake.org
[mailto:cmake-bounces@cmake.org] <b><span style='font-weight:bold'>On Behalf Of
</span></b>Meadows, Aaron C.<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 19, 2010 1:31
PM<br>
<b><span style='font-weight:bold'>To:</span></b> cmake@cmake.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [CMake] Chaining
Dependencies</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'>Hi
all.&nbsp; I hope this isn&#8217;t a terribly obvious question that I just
can&#8217;t find in the documentation..<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'>If I
have an executable &#8216;A&#8217; that depends on a static library
&#8216;B&#8217;, and static library &#8216;B&#8217; depends on static library
&#8216;C&#8217;, can I capture this dependency as part of the CMakeLists.txt
for static library &#8216;B&#8217;, and have it picked up by the CMakeLists.txt
for executable &#8216;A&#8217;?<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'>What I
want to avoid is needing to know the complete dependencies in executable
&#8216;A&#8217; beyond what it directly depends on (static library
&#8216;B&#8217;).<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'>Thanks!<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color=gray face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:gray;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<div style='border:none;border-top:dotted silver 1.0pt;padding:4.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=1 color="#666666" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#666666;font-weight:bold'>Aaron
Meadows</span></font></b><font size=1 color="#666666" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#666666'><br>
Software Engineer<o:p></o:p></span></font></p>

<p style='mso-margin-top-alt:9.0pt;margin-right:0in;margin-bottom:9.0pt;
margin-left:0in'><b><font size=1 color="#f57f20" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#F57F20;font-weight:bold'>Thomson
Reuters<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=1 color="#666666" face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:#666666'>Phone: 314.468.3530<br>
<st1:place w:st="on"><st1:City w:st="on">Mobile</st1:City></st1:place>:
636.541.6139<br>
aaron.meadows@thomsonreuters.com<br>
thomsonreuters.com<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br clear=all>
This email was sent to you by Thomson Reuters, the global news and information
company.<br>
Any views expressed in this message are those of the individual sender, except
where the sender specifically states them to be the views of Thomson Reuters. <o:p></o:p></span></font></p>

</div>

<br clear=all> This email was sent to you by Thomson Reuters, the global news and information company.<br>
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
</body>

</html>