未验证 提交 167de0fa 编写于 作者: P Pei Yang 提交者: GitHub

remove copying trt to inference lib, test=develop (#22470) (#22558)

上级 d8a2aa5d
...@@ -119,13 +119,6 @@ function(copy_part_of_thrid_party TARGET DST) ...@@ -119,13 +119,6 @@ function(copy_part_of_thrid_party TARGET DST)
DSTS ${dst_dir} ${dst_dir}) DSTS ${dst_dir} ${dst_dir})
endif () endif ()
if (TENSORRT_FOUND)
set(dst_dir "${DST}/third_party/install/tensorrt")
copy(${TARGET}
SRCS ${TENSORRT_INCLUDE_DIR}/Nv*.h ${TENSORRT_LIBRARY_DIR}/*nvinfer*
DSTS ${dst_dir}/include ${dst_dir}/lib)
endif ()
if (LITE_BINARY_DIR) if (LITE_BINARY_DIR)
set(dst_dir "${DST}/third_party/install/lite") set(dst_dir "${DST}/third_party/install/lite")
copy(${TARGET} copy(${TARGET}
...@@ -277,8 +270,7 @@ function(version version_file) ...@@ -277,8 +270,7 @@ function(version version_file)
endif() endif()
if(TENSORRT_FOUND) if(TENSORRT_FOUND)
file(APPEND ${version_file} file(APPEND ${version_file}
"WITH_TENSORRT: ${TENSORRT_FOUND}\n" "WITH_TENSORRT: ${TENSORRT_FOUND}\n")
"TENSORRT_ROOT: ${TENSORRT_ROOT}\n")
endif() endif()
endfunction() endfunction()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册