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 <dlrd...@aol.com> wrote: > 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:33 PM, Wesley Smith <wesley.h...@gmail.com> > wrote: > > 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 something I want to use on an upcoming project, so > I'd > > like to help solve any issues with it > > > > Here's where I'm at: > > > > > > * I'm stepping through cmGlobalGenerator.xx in the EnableLanguage > function. > > When the only language is CSHARP, I'm erroring out where it attempts to > get > > the definition of CMAKE_SHARP_COMPILER > > > > * In CMakeErrr.log, I see: > > The CSharp compiler identification could not be found in > > "C:/Users/wes/Documents/GitHub/add-in/build_/CMakeFiles/3.8.20170317- > g45851/CompilerIdCSharp/CompilerIdCSharp.csproj" > > > > When I compile and run this project by hand, I'm seeing > > > > InfoCompiler > > "INFO:compiler[Microsoft Visual Studio]" > > InfoPlatform > > "INFO:platform[Windows]" > > InfoArchitecture > > "INFO:arch[x64]" > > InfoCompilerVersion > > "INFO:compiler_version[2017]" > > > > printed from this code: > > > > static void Main(string[] args) > > { > > // we have to print the lines to make sure > > // the compiler does not optimize them away ... > > System.Console.WriteLine(InfoCompiler); > > System.Console.WriteLine(InfoPlatform); > > System.Console.WriteLine(InfoArchitecture); > > System.Console.WriteLine(InfoCompilerVersion); > > } > > > > > > It all looks good to me. What I haven't been able to find is where the > > project is compiled and run from within CMake and the console stdout > read in > > order to verify the C# compiler settings. > > > > > > thanks, > > wes > > > > > > -- > > > > 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 >
-- 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