We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346bdca commit 9a9f788Copy full SHA for 9a9f788
CMakeLists.txt
@@ -89,10 +89,13 @@ if(NOT TARGET onnx_proto)
89
set(ONNX_NAMESPACE "onnx2trt_onnx")
90
endif()
91
add_definitions("-DONNX_NAMESPACE=${ONNX_NAMESPACE}")
92
+ # Redefine target_compile_features to avoid cross-compilation issues.
93
+ function(target_compile_features)
94
+ endfunction()
95
add_subdirectory(third_party/onnx EXCLUDE_FROM_ALL)
96
97
-# CUDA
98
+# Find CUDA
99
if (NOT CUDA_TOOLKIT_ROOT_DIR)
100
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda)
101
0 commit comments