Skip to content

Commit

Permalink
[fbsync] CXX_STANDARD 14 -> 17 (#7608)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D46071413

fbshipit-source-id: 852549a52847c8146b841625053d637478b10934
  • Loading branch information
NicolasHug authored and facebook-github-bot committed May 23, 2023
1 parent 6ac8703 commit 90b2408
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/ops/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/hello_world/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ios/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion test/tracing/frcnn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 90b2408

Please sign in to comment.