Skip to content

Commit

Permalink
Add C++20 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DecoyRS authored and SmelJey committed Aug 1, 2023
1 parent 62991c0 commit 747f63e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sharpmake.Generators/Rider/RiderJson.Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static class CppLanguageStandard
{
public const string Cpp14 = "Cpp14";
public const string Cpp17 = "Cpp17";
public const string Cpp20 = "Cpp20";
public const string Latest = "Latest";

public const string Default = Cpp14;
Expand Down Expand Up @@ -107,6 +108,7 @@ public static string GetCppStandard(this IGenerationContext context)
Options.Option(Options.Vc.Compiler.CppLanguageStandard.GNU14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.CPP17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.CPP20, () => res = CppLanguageStandard.Cpp20),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.Latest, () => res = CppLanguageStandard.Latest)
);
return res;
Expand Down Expand Up @@ -147,7 +149,9 @@ public static string GetCppStandard(this IGenerationContext context)
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17)
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP20, () => res = CppLanguageStandard.Cpp20),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU20, () => res = CppLanguageStandard.Cpp20)
);
return res;
}
Expand Down

0 comments on commit 747f63e

Please sign in to comment.