summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/actions/xcode/xcode9.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/actions/xcode/xcode9.lua')
-rw-r--r--3rdparty/genie/src/actions/xcode/xcode9.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/3rdparty/genie/src/actions/xcode/xcode9.lua b/3rdparty/genie/src/actions/xcode/xcode9.lua
index aa70275bdda..0578e8af4d3 100644
--- a/3rdparty/genie/src/actions/xcode/xcode9.lua
+++ b/3rdparty/genie/src/actions/xcode/xcode9.lua
@@ -13,8 +13,10 @@
function xcode9.XCBuildConfiguration_Project(tr, prj, cfg)
local options = xcode8.XCBuildConfiguration_Project(tr, prj, cfg)
- if cfg.flags.Cpp17 or cfg.flags.CppLatest then
+ if cfg.flags.Cpp17 then
options.CLANG_CXX_LANGUAGE_STANDARD = "c++17"
+ elseif cfg.flags.Cpp20 or cfg.flags.CppLatest then
+ options.CLANG_CXX_LANGUAGE_STANDARD = "c++20"
end
return table.merge(options, {