<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* 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;}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@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><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Greetings;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Well,
y'know I had one problem, but I figured out what was wrong in the middle
of writing this e-mail.&nbsp; So now this becomes about what I found.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I
have a fairly simple project (I'm experimenting with CMake, and trying to
become proficient in order to "sell" it to the other
developers).&nbsp; I'm using STATIC libs that I've already
built.&nbsp; The executable is composed of only two files.&nbsp; But for some
reason, CMake was treating MyProgram_SRC_OBJS and MyProgram_EXTERNAL_OBJS as if
they were shared (by putting -fPIC in there, as shown below (from CMake's
resulting Makefile):</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/home/jackm/My_Documents/Devel/GeoLocation/CMake/MyProgram:
$(MyProgram_SRC_OBJS) $(MyProgram_EXTERNAL_OBJS) $(MyProgram_DEPEND_LIBS)</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @echo
&quot;Building executable
/home/jackm/My_Documents/Devel/GeoLocation/CMake/MyProgram...&quot;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c++&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-g -Wall -Wno-deprecated -Wno-trigraphs -<b><span style='font-weight:bold'>fPIC</span></b>&nbsp;
$(MyProgram_SRC_OBJS) $(MyProgram_EXTERNAL_OBJS)&nbsp;&nbsp; -o
/home/jackm/My_Documents/Devel/GeoLocation/CMake/MyProgram -<b><span
style='font-weight:bold'>rdynamic</span></b>
-L/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/AnyFile
-L/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/Topo
-L/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/NamedGeoid
-L/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/PMV -L/home/jackm/My_Documents/Devel/GeoLocation/CMake
-lAnyFile -lTopo -lNamedGeoid -lPMV
-Wl,-rpath,/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/AnyFile:/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/Topo:/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/NamedGeoid:/home/jackm/Drive_hdb/My_Documents/Devel/CommonLib/PMV:/home/jackm/My_Documents/Devel/GeoLocation/CMake
</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Why would it do that?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Y'know, CMakeList.txt examples are extremely hard to
come by, I've been googling for hours (unless I were to download an unpack
all of VTK or ITK).&nbsp; Any chance of opening up a directory of well-annotated
example CMakeList.txt files?&nbsp; </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Best Regards;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jack</span></font></p>

</div>

</body>

</html>