From 5ae059e049c1f1a1ec53fd34b986bd4dbc69ddc3 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:37:48 +0100 Subject: [PATCH] cmake: Add "xcode" preset --- CMakePresets.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index 3bbb61afcecdb2..ae8f266f9bc77a 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -2,6 +2,20 @@ "version": 3, "cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0}, "configurePresets": [ + { + "name": "xcode", + "displayName": "Build using 'Xcode' generator", + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Darwin" + }, + "generator": "Xcode", + "cacheVariables": { + "CMAKE_CXX_FLAGS": "-Wno-shorten-64-to-32", + "CMAKE_C_FLAGS": "-Wno-shorten-64-to-32" + } + }, { "name": "vs2022", "displayName": "Build using 'Visual Studio 17 2022' generator and 'x64-windows' triplet",