[CMake] -fwhole-program with GCC

Yi Ding yi.s.ding at gmail.com
Sun Aug 19 19:33:21 EDT 2012


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


More information about the CMake mailing list