Unverified Commit 508bc1dc authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

CXX_STANDARD 14 -> 17 (#7608)

parent a1ec864a
cmake_minimum_required(VERSION 3.4.1) cmake_minimum_required(VERSION 3.4.1)
set(TARGET torchvision_ops) set(TARGET torchvision_ops)
project(${TARGET} CXX) project(${TARGET} CXX)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 17)
string(APPEND CMAKE_CXX_FLAGS " -DMOBILE") string(APPEND CMAKE_CXX_FLAGS " -DMOBILE")
......
...@@ -17,4 +17,4 @@ add_executable(hello-world main.cpp) ...@@ -17,4 +17,4 @@ add_executable(hello-world main.cpp)
# which also adds all the necessary torch dependencies. # which also adds all the necessary torch dependencies.
target_compile_features(hello-world PUBLIC cxx_range_for) target_compile_features(hello-world PUBLIC cxx_range_for)
target_link_libraries(hello-world TorchVision::TorchVision) 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)
cmake_minimum_required(VERSION 3.4.1) cmake_minimum_required(VERSION 3.4.1)
set(TARGET torchvision_ops) set(TARGET torchvision_ops)
project(${TARGET} CXX) project(${TARGET} CXX)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 17)
set(LIBTORCH_HEADER_ROOT ${LIBTORCH_HEADER_ROOT}) set(LIBTORCH_HEADER_ROOT ${LIBTORCH_HEADER_ROOT})
set(LIBRARY_OUTPUT_PATH ../lib) set(LIBRARY_OUTPUT_PATH ../lib)
......
...@@ -10,4 +10,4 @@ find_package(Python3 COMPONENTS Development) ...@@ -10,4 +10,4 @@ find_package(Python3 COMPONENTS Development)
add_executable(test_frcnn_tracing test_frcnn_tracing.cpp) add_executable(test_frcnn_tracing test_frcnn_tracing.cpp)
target_compile_features(test_frcnn_tracing PUBLIC cxx_range_for) target_compile_features(test_frcnn_tracing PUBLIC cxx_range_for)
target_link_libraries(test_frcnn_tracing ${TORCH_LIBRARIES} TorchVision::TorchVision Python3::Python) 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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment