Re: [CMake] -fwhole-program with GCC

2012-08-20 Thread Yi Ding
That did the trick. Thanks! On Sun, Aug 19, 2012 at 7:56 PM, Leif Walsh wrote: > cmake --help-command set_target_properties > cmake --help-property LINK_FLAGS > cmake --help-variable CMAKE_EXE_LINKER_FLAGS > > I think this will get you started. > > Sent from my iPhone > > On Aug 19, 2012, at 19:

Re: [CMake] -fwhole-program with GCC

2012-08-19 Thread Leif Walsh
cmake --help-command set_target_properties cmake --help-property LINK_FLAGS cmake --help-variable CMAKE_EXE_LINKER_FLAGS I think this will get you started. Sent from my iPhone On Aug 19, 2012, at 19:33, Yi Ding wrote: > Hi everyone, > > Is there a way to get CMake to use -fwhole-program (but

[CMake] -fwhole-program with GCC

2012-08-19 Thread Yi Ding
Hi everyone, Is there a way to get CMake to use -fwhole-program (but only when building executables?) I've gotten -flto working but I don't see a good way to get -fwhole-program to work. Is there a way to set compiler flags on a per executable basis? Thanks, Yi -- Powered by www.kitware.com V