Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
So the answer is enable_language(CSHARP) should be enable_language(CSharp). -- 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

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
Thanks David, I'll have a look at that. Here's my CMake script ``` cmake_minimum_required(VERSION 3.8.0) project(add-in) enable_language(CSHARP) ``` On Wed, Mar 22, 2017 at 9:58 AM, David Cole wrote: > Have you looked into > https://github.com/Kitware/CMake/blob/master/Modules/ > CMakeDetermi

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread David Cole via cmake-developers
Have you looked into https://github.com/Kitware/CMake/blob/master/Modules/CMakeDetermineCSharpCompiler.cmake ? Send steps to reproduce the problem you're seeing... Maybe somebody else here has encountered the same thing and worked through it already. HTH, David C. On Wed, Mar 22, 2017 at 12:3

[cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
Hi, I'm trying to diagnose why enable_language(CSHARP) isn't working for me in the RC candidate. I've built CMake from source and am trying to step through the code, but am coming up against the fact that this is an enormous project and I don't quite know where to look. The new C# support is somet

Re: [cmake-developers] Is it possible to clone an existing target?

2017-03-22 Thread Egor Pugin
Aliases for imported targets also would be useful. I found some old email threads, but seems they had not been implemented. On 22 March 2017 at 16:53, Stanislav Pankevich wrote: > Hi Brad, > > Thanks for the answer. > > Yes, I am going to write my own macro which, I hope, will do the job for the

Re: [cmake-developers] Is it possible to clone an existing target?

2017-03-22 Thread Stanislav Pankevich
Hi Brad, Thanks for the answer. Yes, I am going to write my own macro which, I hope, will do the job for the most cases. My use case is to generate the LLVM bitcode artefacts *.bc from existing CMake target instead of a binary that it would produce by default. Cloning existing target and then pa

Re: [cmake-developers] Is it possible to clone an existing target?

2017-03-22 Thread Brad King
On 03/22/2017 03:30 AM, Stanislav Pankevich wrote: > I have a target `MyTarget`. Is there a way I could do something like > > clone_target(MyTarget MyNewTarget) > > so that MyNewTarget appears to be the exact clone (deep copy) > of original target with the only difference of a target name? There

[cmake-developers] Is it possible to clone an existing target?

2017-03-22 Thread Stanislav Pankevich
Hello, I have a target `MyTarget`. Is there a way I could do something like clone_target(MyTarget MyNewTarget) so that MyNewTarget appears to be the exact clone (deep copy) of original target with the only difference of a target name? P.S. I understand that complex projects may be the edge-case