<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</HEAD>
<BODY lang=EN-GB link=blue vlink=purple>
<TABLE CELLSPACING="0" CELLPADDING="5" WIDTH="100%">
<TBODY>
<TR>
<TD STYLE="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-SIZE: 12px; BORDER-LEFT: gray 1px solid; BORDER-BOTTOM: gray 1px solid; FONT-FAMILY: verdana; BACKGROUND-COLOR: white" VALIGN="top">
<P>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal>I have a simple CMakeLists.txt file, in a directory called ‘multicast’:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>cmake_minimum_required(VERSION 2.6)<o:p></o:p></p>
<p class=MsoNormal>include_directories(../.. /usr/local/include/boost-1_38)<o:p></o:p></p>
<p class=MsoNormal>add_library(spreadx_multicast SHARED Message.cpp
MulticastChannel.cpp)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This successfully gives me a 64 bit .so:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>birju@cavewks7181:~/Dev/spreadx/multicast$ file
libspreadx_multicast.so<o:p></o:p></p>
<p class=MsoNormal>libspreadx_multicast.so: ELF 64-bit LSB shared object,
x86-64, version 1 (SYSV), dynamically linked, not stripped<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>However, there is a problem when I try and invoke that from
a directory above with the following CMakeLists.txt file:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>cmake_minimum_required (VERSION 2.6)<o:p></o:p></p>
<p class=MsoNormal>project (SPREADX)<o:p></o:p></p>
<p class=MsoNormal>add_subdirectory (multicast)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This gives me a 32 bit .so:<o:p></o:p></p>
<p class=MsoNormal>birju@cavewks7181:~/Dev/spreadx$ file
multicast/libspreadx_multicast.so<o:p></o:p></p>
<p class=MsoNormal>multicast/libspreadx_multicast.so: ELF 32-bit LSB shared
object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Why does it in one case generate a 64 bit lib, and in the
other, a 32 bit one?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>TIA,<o:p></o:p></p>
<p class=MsoNormal>Birju<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</P>
<P> </P>
</TD>
</TR>
<TR>
<TD STYLE="FONT-SIZE: 8pt; FONT-FAMILY: verdana" VALIGN="top">
<P><STRONG></STRONG> </P>
<P><STRONG>Schneider Trading</STRONG><BR>4th Floor,<BR>25 Copthall Avenue<BR>London EC2R 7BP<BR><BR>
<HR SIZE="1">
<P>
</P>
<P>
</P>
<P>
</P><SPAN STYLE="COLOR: gray">
<P><I>Message from: <FONT COLOR="black">Birju.Prajapati@schneidertrading.com</FONT><BR>Message to: <FONT COLOR="black">cmake@cmake.org</FONT><BR>Attached files: <FONT COLOR="black">0</FONT></I></P>
<P><I><FONT SIZE="1">This e-mail and any files transmitted with it are confidential, may be legally privileged, and are for the sole use of the intended recipient. Copyright in this e-mail and any accompanying document created by us is owned by us. If you are not the intended recipient of this e-mail or any part of it please telephone our IT Department at the number shown above or by e-mail at info@schneidertrading.com. </FONT></I></P>
<P><EM><FONT SIZE="1">You should not use or disclose to any other person the contents of this e-mail or its attachments (if any), nor take copies. This e-mail is not a representation or warranty and is not intended nor should it be taken to create any legal relations, contractual or otherwise.</FONT></EM></P>
<P><SPAN LANG="EN-GB" STYLE="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><FONT FACE="Verdana" COLOR="gray" SIZE="1"><EM>Schneider Trading Associates Ltd (Registration No. 3692131) is incorporated in England and Wales and the registered office is at 25 Copthall Avenue, London EC2R 7BP. The company is authorised and regulated by the Financial Services Authority</EM></FONT></SPAN></P></SPAN></P>
</TD>
</TR>
</TBODY>
</TABLE></BODY></HTML>