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

[CMake] fixup_bundle placing libs under wrong directory

2012-08-19 Thread Utkarsh Ayachit
When I use fixup_bundle as follows, I end up with all the dependent dylibs under "App/.../MacOS" instead of "App/.../Libraries". How do I make fixup_bundle copy the dependencies into the Libraries dir and fix paths accordingly? fixup_bundle(\"${install_location}/Applications/paraview.app\" \"\" \"

Re: [CMake] fixup_bundle placing libs under wrong directory

2012-08-19 Thread Utkarsh Ayachit
p.s. This is with CMake 2.8.8. Utkarsh On Sun, Aug 19, 2012 at 11:42 AM, Utkarsh Ayachit wrote: > When I use fixup_bundle as follows, I end up with all the dependent > dylibs under "App/.../MacOS" instead of "App/.../Libraries". How do I > make fixup_bundle copy the dependencies into the Librari