Skip to content

Commit 508bc1d

Browse files
authoredMay 22, 2023
CXX_STANDARD 14 -> 17 (pytorch#7608)
1 parent a1ec864 commit 508bc1d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎android/ops/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.4.1)
22
set(TARGET torchvision_ops)
33
project(${TARGET} CXX)
4-
set(CMAKE_CXX_STANDARD 14)
4+
set(CMAKE_CXX_STANDARD 17)
55

66
string(APPEND CMAKE_CXX_FLAGS " -DMOBILE")
77

‎examples/cpp/hello_world/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ add_executable(hello-world main.cpp)
1717
# which also adds all the necessary torch dependencies.
1818
target_compile_features(hello-world PUBLIC cxx_range_for)
1919
target_link_libraries(hello-world TorchVision::TorchVision)
20-
set_property(TARGET hello-world PROPERTY CXX_STANDARD 14)
20+
set_property(TARGET hello-world PROPERTY CXX_STANDARD 17)

‎ios/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.4.1)
22
set(TARGET torchvision_ops)
33
project(${TARGET} CXX)
4-
set(CMAKE_CXX_STANDARD 14)
4+
set(CMAKE_CXX_STANDARD 17)
55
set(LIBTORCH_HEADER_ROOT ${LIBTORCH_HEADER_ROOT})
66
set(LIBRARY_OUTPUT_PATH ../lib)
77

‎test/tracing/frcnn/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ find_package(Python3 COMPONENTS Development)
1010
add_executable(test_frcnn_tracing test_frcnn_tracing.cpp)
1111
target_compile_features(test_frcnn_tracing PUBLIC cxx_range_for)
1212
target_link_libraries(test_frcnn_tracing ${TORCH_LIBRARIES} TorchVision::TorchVision Python3::Python)
13-
set_property(TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 14)
13+
set_property(TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 17)

0 commit comments

Comments
 (0)
Please sign in to comment.