On Tue, Oct 27, 2009 at 12:43 PM, Brad King <[email protected]> wrote:
> James Bigler wrote: > > I noticed in some commit message to CMake a while ago that -fPIC was > > removed from executable compilation. > > > > Would anyone care to comment on why this is? I must admit I thought it > > wouldn't hurt it to have it compiled with that flag. > > It's unnecessary, and is actually a Debian policy violation. > See here: > > http://www.cmake.org/Bug/view.php?id=9659 > > -Brad > 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. James
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
