[CMake] statically linked executables

Bill Hoffman bill.hoffman at kitware.com
Tue Nov 27 12:55:11 EST 2007


Daniel Rueckert wrote:
> Hi,
> 
> I am trying to build some statically linked executables on a linux
> box. I have added the "-static" option to the linker flags and specified
> static link libraries but for some reason cmake still adds the option
> "-Wl,-Bdynamic" flag to the linker options. Is there any way around this?
> 
> Thanks, Daniel

Sounds like you might have some explicit shared libraries linked into 
you project with full paths.

-Bill



More information about the CMake mailing list