Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
508bc1dc
Unverified
Commit
508bc1dc
authored
May 22, 2023
by
Philip Meier
Committed by
GitHub
May 22, 2023
Browse files
CXX_STANDARD 14 -> 17 (#7608)
parent
a1ec864a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
android/ops/CMakeLists.txt
android/ops/CMakeLists.txt
+1
-1
examples/cpp/hello_world/CMakeLists.txt
examples/cpp/hello_world/CMakeLists.txt
+1
-1
ios/CMakeLists.txt
ios/CMakeLists.txt
+1
-1
test/tracing/frcnn/CMakeLists.txt
test/tracing/frcnn/CMakeLists.txt
+1
-1
No files found.
android/ops/CMakeLists.txt
View file @
508bc1dc
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 1
4
)
set
(
CMAKE_CXX_STANDARD 1
7
)
string
(
APPEND CMAKE_CXX_FLAGS
" -DMOBILE"
)
string
(
APPEND CMAKE_CXX_FLAGS
" -DMOBILE"
)
...
...
examples/cpp/hello_world/CMakeLists.txt
View file @
508bc1dc
...
@@ -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 1
4
)
set_property
(
TARGET hello-world PROPERTY CXX_STANDARD 1
7
)
ios/CMakeLists.txt
View file @
508bc1dc
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 1
4
)
set
(
CMAKE_CXX_STANDARD 1
7
)
set
(
LIBTORCH_HEADER_ROOT
${
LIBTORCH_HEADER_ROOT
}
)
set
(
LIBTORCH_HEADER_ROOT
${
LIBTORCH_HEADER_ROOT
}
)
set
(
LIBRARY_OUTPUT_PATH ../lib
)
set
(
LIBRARY_OUTPUT_PATH ../lib
)
...
...
test/tracing/frcnn/CMakeLists.txt
View file @
508bc1dc
...
@@ -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 1
4
)
set_property
(
TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 1
7
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment