[CMake] Initial C# support (was Re: Adding support for new languages to CMake)

Alexander Neundorf a.neundorf-work at gmx.net
Fri Oct 17 13:00:08 EDT 2008


On Friday 17 October 2008, Mathieu Malaterre wrote:
...
> Quick question, here is how one create executable in C#:
>
>   SET(CMAKE_CSharp_LINK_EXECUTABLE
>     "<CMAKE_CSharp_COMPILER> <FLAGS> <OBJECTS> -out:<TARGET>.exe
> <LINK_LIBRARIES>")
>
> The problem here is that i need to prepend each added libary using
> "/r" , I could not figure out which flag dictate that (for now
> <LINK_LIBRARIES> expand to 'foo.dll', while I need '/r:foo.dll').

Not sure, but did you set CMAKE_LINK_LIBRARY_FLAG ?

Alex


>
> thanks


More information about the CMake mailing list