Re: [CMake] Howto compile static executable?

2010-09-29 Thread Marcel Loose
On Tue, 2010-09-28 at 18:57 +0200, Eric Noulard wrote: > Hi All, > > I have project which (cross-)compile some simple C applications > with some bare CMake statement like this: > > add_executable(myapp myapp.c) > > no target_link_libraries, no dep, etc... > > I want to build fully static execu

[CMake] Howto compile static executable?

2010-09-28 Thread Eric Noulard
Hi All, I have project which (cross-)compile some simple C applications with some bare CMake statement like this: add_executable(myapp myapp.c) no target_link_libraries, no dep, etc... I want to build fully static executable (even for libc etc...) Currently I do: set_target_properties(myapp P