{ "version": 10, "cmakeMinimumRequired": { "major": 3, "minor": 31, "patch": 0 }, "$comment": "On-device AI across mobile, embedded and edge for PyTorch.", "configurePresets": [ { "name": "common", "hidden": true, "binaryDir": "${sourceDir}/cmake-out", "generator": "Unix Makefiles" }, { "name": "macos-arm64", "displayName": "Build everything buildable on macOS arm64", "inherits": ["common"], "generator": "Xcode", "cacheVariables": { "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/third-party/ios-cmake/ios.toolchain.cmake", "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/macos-arm64.cmake", "PLATFORM": "MAC_ARM64", "DEPLOYMENT_TARGET": "10.15" }, "condition": { "lhs": "${hostSystemName}", "type": "equals", "rhs": "Darwin" } }, { "name": "pybind", "displayName": "Build pybindings exported in the wheel", "inherits": ["common"], "cacheVariables": { "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/pybind.cmake", "CMAKE_OSX_DEPLOYMENT_TARGET": "10.15" }, "condition": { "type": "inList", "string": "${hostSystemName}", "list": ["Darwin", "Linux", "Windows"] } } ] }