Improper Visual Studio 14 linker flag appending and escaping
Minimal sample: https://gitlab.kitware.com/tambre/CMakeLinkFlagsBug
When adding a linker flags using the following:
set_property(TARGET ... APPEND PROPERTY LINK_FLAGS ...)
Then only the first added linker flag will be somewhat correctly generated. No further flags will apply due to incorrect generation. For example something like this may be generated:
/MAP:"thisalmostworks;/OUT:doesntwork"
The correct generation would be:
/MAP:thisalmostworks /OUT:doesntwork
Note that this is probably not 3.7-rc1 and Visual Studio 14 2015 specific, but I'm unable to test other configurations.
CMake version: 3.7-rc1
Generator: Visual Studio 14 2015