File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4.1)
2
2
set (TARGET torchvision_ops)
3
3
project (${TARGET} CXX)
4
- set (CMAKE_CXX_STANDARD 14 )
4
+ set (CMAKE_CXX_STANDARD 17 )
5
5
6
6
string (APPEND CMAKE_CXX_FLAGS " -DMOBILE" )
7
7
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ add_executable(hello-world main.cpp)
17
17
# which also adds all the necessary torch dependencies.
18
18
target_compile_features (hello-world PUBLIC cxx_range_for)
19
19
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 )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4.1)
2
2
set (TARGET torchvision_ops)
3
3
project (${TARGET} CXX)
4
- set (CMAKE_CXX_STANDARD 14 )
4
+ set (CMAKE_CXX_STANDARD 17 )
5
5
set (LIBTORCH_HEADER_ROOT ${LIBTORCH_HEADER_ROOT} )
6
6
set (LIBRARY_OUTPUT_PATH ../lib)
7
7
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ find_package(Python3 COMPONENTS Development)
10
10
add_executable (test_frcnn_tracing test_frcnn_tracing.cpp)
11
11
target_compile_features (test_frcnn_tracing PUBLIC cxx_range_for)
12
12
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 )
You can’t perform that action at this time.
0 commit comments