From 678c0d5b4d023ba06e1a55ade7d828e83f53ebaf Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 9 Mar 2026 10:26:45 -0700 Subject: [PATCH] [4/12] Upgrade torchvision build configs to C++20 (#9427) Summary: Update CMAKE_CXX_STANDARD from 17 to 20 in torchvision's CMakeLists.txt files (main, android/ops, ios). Differential Revision: D95103083 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9958565497f..4442677a499 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.18) project(torchvision) -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 20) file(STRINGS version.txt TORCHVISION_VERSION) option(WITH_CUDA "Enable CUDA support" OFF)