When generating VS2010 targets with CMake, I would like the /LTCG flag turned on (only for release + releasewithdebinfo if possible, but its okay if its on for debug builds)
You can add linker flags for a specific target using the LINK_FLAGS property:
LINK_FLAGS
set_property(TARGET ${target} APPEND_STRING PROPERTY LINK_FLAGS " ${flag}")
(note that I added a space before the flag since I'm using APPEND_STRING)
APPEND_STRING