Re: [CMake] Wanted: Interface link options

2014-06-16 Thread Anders Lindgren
Hi! Petr, thanks for the suggestion to use -NODEFAULTLIB:xxx instead of /NODEFAULTLIB:xxx. I managed to get it to work using: set_target_properties(mylib PROPERTIES INTERFACE_LINK_LIBRARIES $$CONFIG:Debug:-NODEFAULTLIB:msvcrt) However, I've noticed one drawback: in the generated Visual

[CMake] Wanted: Interface link options

2014-06-13 Thread Anders Lindgren
Hi! I have a third party-library only available in Release flavor. When building a Debug configuration, I need to pass the option /NODEFAULTLIB:libcmt to the Visual Studio linker. I have been playing around with the new target interface system. However, I'm missing a way for a library to specify

Re: [CMake] Wanted: Interface link options

2014-06-13 Thread Petr Kmoch
Hi Andres. I cannot comment on the property request itself, but you should be able to work around its absence by using `-` instead of `/` to introduce the linker option - the Visual Studio tools understand both, AFAIK. Petr On Fri, Jun 13, 2014 at 1:42 PM, Anders Lindgren andl...@gmail.com

Re: [CMake] Wanted: Interface link options

2014-06-13 Thread Nils Gladitz
On 06/13/2014 01:42 PM, Anders Lindgren wrote: So, I suggest adding a INTERFACE_LINK_OPTIONS target property. There is work in progress for this: https://github.com/swwilso1/CMake/tree/link-options-command Discussion: