On Tue, Oct 27, 2009 at 12:43 PM, Brad King <span dir="ltr">&lt;<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">James Bigler wrote:<br>
&gt; I noticed in some commit message to CMake a while ago that -fPIC was<br>
&gt; removed from executable compilation.<br>
&gt;<br>
&gt; Would anyone care to comment on why this is?  I must admit I thought it<br>
&gt; wouldn&#39;t hurt it to have it compiled with that flag.<br>
<br>
</div></div>It&#39;s unnecessary, and is actually a Debian policy violation.<br>
See here:<br>
<br>
  <a href="http://www.cmake.org/Bug/view.php?id=9659" target="_blank">http://www.cmake.org/Bug/view.php?id=9659</a><br>
<font color="#888888"><br>
-Brad<br>
</font></blockquote></div><br>Thanks for the info.  That means I&#39;ll have to update my FindCUDA.cmake script to be smarter about adding that flag, since it does so whenever BUILD_SHARED_LIBS is true, even when compiling an executable.<br>

<br>James<br>