Skip to content

Commit

Permalink
Fixed global CSharp flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStahL committed Feb 5, 2022
1 parent a7566c2 commit bf60a1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ project("WaveSabre" LANGUAGES C CXX CSharp)
# Enable C# Utilities also for the VS2013 AppVeyor stage.
cmake_policy(SET CMP0057 NEW)
include(CSharpUtilities)
set(CMAKE_CSharp_FLAGS ${CMAKE_CSharp_FLAGS} "/langversion:6")

# Note: The space suffix is required for the flag to work correctly.
set(CMAKE_CSharp_FLAGS "/langversion:latest ")

find_package(Git REQUIRED)
include(ExternalProject)
Expand Down

0 comments on commit bf60a1a

Please sign in to comment.