On Tue, Oct 27, 2009 at 12:43 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>></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>
> I noticed in some commit message to CMake a while ago that -fPIC was<br>
> removed from executable compilation.<br>
><br>
> Would anyone care to comment on why this is? I must admit I thought it<br>
> wouldn't hurt it to have it compiled with that flag.<br>
<br>
</div></div>It'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'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>