diff --git a/android/ops/CMakeLists.txt b/android/ops/CMakeLists.txt index ad42adbfa71..fb8d4348e8e 100644 --- a/android/ops/CMakeLists.txt +++ b/android/ops/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.4.1) set(TARGET torchvision_ops) project(${TARGET} CXX) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) string(APPEND CMAKE_CXX_FLAGS " -DMOBILE") diff --git a/examples/cpp/hello_world/CMakeLists.txt b/examples/cpp/hello_world/CMakeLists.txt index 3ca59e4c199..7d49178b8b3 100644 --- a/examples/cpp/hello_world/CMakeLists.txt +++ b/examples/cpp/hello_world/CMakeLists.txt @@ -17,4 +17,4 @@ add_executable(hello-world main.cpp) # which also adds all the necessary torch dependencies. target_compile_features(hello-world PUBLIC cxx_range_for) target_link_libraries(hello-world TorchVision::TorchVision) -set_property(TARGET hello-world PROPERTY CXX_STANDARD 14) +set_property(TARGET hello-world PROPERTY CXX_STANDARD 17) diff --git a/ios/CMakeLists.txt b/ios/CMakeLists.txt index 6b9fd3925b2..4201240a427 100644 --- a/ios/CMakeLists.txt +++ b/ios/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.4.1) set(TARGET torchvision_ops) project(${TARGET} CXX) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(LIBTORCH_HEADER_ROOT ${LIBTORCH_HEADER_ROOT}) set(LIBRARY_OUTPUT_PATH ../lib) diff --git a/test/tracing/frcnn/CMakeLists.txt b/test/tracing/frcnn/CMakeLists.txt index c79382470bd..8ede462e34b 100644 --- a/test/tracing/frcnn/CMakeLists.txt +++ b/test/tracing/frcnn/CMakeLists.txt @@ -10,4 +10,4 @@ find_package(Python3 COMPONENTS Development) add_executable(test_frcnn_tracing test_frcnn_tracing.cpp) target_compile_features(test_frcnn_tracing PUBLIC cxx_range_for) target_link_libraries(test_frcnn_tracing ${TORCH_LIBRARIES} TorchVision::TorchVision Python3::Python) -set_property(TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 14) +set_property(TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 17)