On 04/04/2016 04:08 PM, Adam Treat via cmake-developers wrote:
> I have been working on improving the cmake language module for C# found here:

Thanks for working on this.  I'm adding Michael Stuermer to Cc who has
been working on support in the VS IDE generators:

 
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/15753/focus=16064

> One thing that has me a bit flummoxed is how to implement the following:
> 
> CMAKE_CSharp_CREATE_SHARED_LIBRARY
> CMAKE_CSharp_CREATE_SHARED_MODULE
> CMAKE_CSharp_CREATE_STATIC_LIBRARY
> 
> in CMakeCSharpInformation.cmake.  In C# libraries need to have all symbols 
> resolved
> at creation time just like executables and this means I need access to the 
> LINK_LIBRARIES
> property to correctly implement the above.  However, it seems this property 
> is empty
> for the above.

It is expected to be available for at least the shared/module link rules.
See cmMakefileTargetGenerator::CreateLinkLibs's implementation and its
call sites.  Also see cmLocalGenerator::ExpandRuleVariable for where
the placeholders like <LINK_LIBRARIES> get expanded.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to