diff options
author | Sumit Bhardwaj <bhardwajs@outlook.com> | 2020-01-16 01:09:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-16 14:34:00 (GMT) |
commit | 2e882b4275eea16eff0debc10fe6431bc50acd9e (patch) | |
tree | 7af51878b30b70a81189946e5d9895901433376e /Modules/CMakeCSharpInformation.cmake | |
parent | e125d50ddf7fc1a0df77fb0de7ca97db00277ee2 (diff) | |
download | CMake-2e882b4275eea16eff0debc10fe6431bc50acd9e.zip CMake-2e882b4275eea16eff0debc10fe6431bc50acd9e.tar.gz CMake-2e882b4275eea16eff0debc10fe6431bc50acd9e.tar.bz2 |
CSharp: Set C# compiler to default version
Remove the hard-coded ``/langversion:3`` option and let the compiler
choose the default language version automatically as documented at
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version
Fixes: #17674
Diffstat (limited to 'Modules/CMakeCSharpInformation.cmake')
-rw-r--r-- | Modules/CMakeCSharpInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCSharpInformation.cmake b/Modules/CMakeCSharpInformation.cmake index 48e1a1e..41cd449 100644 --- a/Modules/CMakeCSharpInformation.cmake +++ b/Modules/CMakeCSharpInformation.cmake @@ -10,7 +10,7 @@ get_filename_component(CMAKE_BASE_NAME "${CMAKE_CSharp_COMPILER}" NAME_WE) set(CMAKE_BUILD_TYPE_INIT Debug) -set(CMAKE_CSharp_FLAGS_INIT "/define:TRACE /langversion:3") +set(CMAKE_CSharp_FLAGS_INIT "/define:TRACE") set(CMAKE_CSharp_FLAGS_DEBUG_INIT "/debug:full /optimize- /warn:3 /errorreport:prompt /define:DEBUG") set(CMAKE_CSharp_FLAGS_RELEASE_INIT "/debug:none /optimize /warn:1 /errorreport:queue") set(CMAKE_CSharp_FLAGS_RELWITHDEBINFO_INIT "/debug:full /optimize-") |